0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 12:51:52 +00:00

Remove GC_G(gc_active) check

This commit is contained in:
Jan-E 2018-07-05 11:22:17 +02:00
parent 6fc0c216d8
commit c7019e3c1a

View File

@ -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);