mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 08:11:52 +00:00
Remove GC_G(gc_active) check
This commit is contained in:
parent
6fc0c216d8
commit
c7019e3c1a
@ -210,10 +210,12 @@ static HashTable *v8js_v8object_get_properties(zval *object) /* {{{ */
|
||||
v8js_v8object *obj = Z_V8JS_V8OBJECT_OBJ_P(object);
|
||||
|
||||
if (obj->properties == NULL) {
|
||||
#if PHP_VERSION_ID < 70300
|
||||
if (GC_G(gc_active)) {
|
||||
/* the garbage collector is running, don't create more zvals */
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
ALLOC_HASHTABLE(obj->properties);
|
||||
zend_hash_init(obj->properties, 0, NULL, ZVAL_PTR_DTOR, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user