diff --git a/v8js_v8object_class.cc b/v8js_v8object_class.cc index 49669ac..abc32d3 100644 --- a/v8js_v8object_class.cc +++ b/v8js_v8object_class.cc @@ -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);