Browse Source

Remove GC_G(gc_active) check

Jan-E 6 years ago
parent
commit
c7019e3c1a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      v8js_v8object_class.cc

+ 2 - 0
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);
 	v8js_v8object *obj = Z_V8JS_V8OBJECT_OBJ_P(object);
 
 
 	if (obj->properties == NULL) {
 	if (obj->properties == NULL) {
+#if PHP_VERSION_ID < 70300
 		if (GC_G(gc_active)) {
 		if (GC_G(gc_active)) {
 			/* the garbage collector is running, don't create more zvals */
 			/* the garbage collector is running, don't create more zvals */
 			return NULL;
 			return NULL;
 		}
 		}
+#endif
 
 
 		ALLOC_HASHTABLE(obj->properties);
 		ALLOC_HASHTABLE(obj->properties);
 		zend_hash_init(obj->properties, 0, NULL, ZVAL_PTR_DTOR, 0);
 		zend_hash_init(obj->properties, 0, NULL, ZVAL_PTR_DTOR, 0);