We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e3a70 commit decbfccCopy full SHA for decbfcc
Zend/zend_objects_API.c
@@ -215,6 +215,10 @@ ZEND_API void ZEND_FASTCALL zend_objects_store_del(zend_object *object) /* {{{ *
215
object->handlers->free_obj(object);
216
printf("Freeing %p and invoking free\n", object);
217
} else {
218
+ GC_ADD_FLAGS(object, IS_OBJ_FREE_CALLED);
219
+ GC_SET_REFCOUNT(object, 1);
220
+ object->handlers->free_obj(object);
221
+
222
printf("Freeing %p without invoking free\n", object);
223
}
224
ptr = ((char*)object) - object->handlers->offset;
0 commit comments