summaryrefslogtreecommitdiff
path: root/Zend/zend_objects_API.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-02-20 16:21:41 +0800
committerXinchen Hui <laruence@gmail.com>2014-02-20 16:21:41 +0800
commitcc15eb500ed9c47412b41ee461cf7b4f00701ead (patch)
tree3710d574d94add130bd29376bf0fdf8b9e089d85 /Zend/zend_objects_API.c
parentb917458490ece8d418caee5b6e43db9f7567cb72 (diff)
downloadphp-git-cc15eb500ed9c47412b41ee461cf7b4f00701ead.tar.gz
Fixed segfault in Zend/tests/008.phpt
Diffstat (limited to 'Zend/zend_objects_API.c')
-rw-r--r--Zend/zend_objects_API.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_objects_API.c b/Zend/zend_objects_API.c
index 5bef2d4973..8e406ec715 100644
--- a/Zend/zend_objects_API.c
+++ b/Zend/zend_objects_API.c
@@ -55,7 +55,7 @@ ZEND_API void zend_objects_store_call_destructors(zend_objects_store *objects TS
obj->gc.refcount--;
if (obj->gc.refcount == 0) {
- gc_remove_zval_from_buffer((zend_refcounted*)obj TSRMLS_CC);
+ GC_REMOVE_ZOBJ_FROM_BUFFER(obj TSRMLS_CC);
}
}
}
@@ -86,7 +86,7 @@ ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects
zend_object *obj = objects->object_buckets[i];
if (IS_VALID(obj)) {
- gc_remove_zval_from_buffer((zend_refcounted*)obj TSRMLS_CC);
+ GC_REMOVE_ZOBJ_FROM_BUFFER(obj TSRMLS_CC);
objects->object_buckets[i] = SET_INVALID(obj);
if (obj->handlers->free_obj) {
obj->handlers->free_obj(obj TSRMLS_CC);