mirror of
https://github.com/phpv8/v8js.git
synced 2025-03-13 18:07:04 +00:00
gc_status.runs https://externals.io/message/102338#102568 @cmb69
This commit is contained in:
parent
997df065d3
commit
0a12ac19d8
@ -211,7 +211,9 @@ static HashTable *v8js_v8object_get_properties(zval *object) /* {{{ */
|
||||
|
||||
if (obj->properties == NULL) {
|
||||
#if PHP_VERSION_ID >= 70300
|
||||
if (zend_gc_collect_cycles()) {
|
||||
zend_gc_status gc_status;
|
||||
zend_gc_get_status(&gc_status);
|
||||
if (gc_status.runs) {
|
||||
#else
|
||||
if (GC_G(gc_active)) {
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user