summaryrefslogtreecommitdiff
path: root/Zend/zend_gc.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-01-24 11:54:55 +0000
committerDmitry Stogov <dmitry@php.net>2008-01-24 11:54:55 +0000
commitd328000c476f42d08e215710f7a37907fbbf3ec8 (patch)
treecc4310d4df8649b234577a8308f8365eafd87e08 /Zend/zend_gc.c
parentdfd32b69fd737658e4546cb2e1c4329b5f74eed3 (diff)
downloadphp-git-d328000c476f42d08e215710f7a37907fbbf3ec8.tar.gz
Fixed possible GC failure bacause of EG(object_store).object_buckets reallocation
Diffstat (limited to 'Zend/zend_gc.c')
-rw-r--r--Zend/zend_gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c
index 48afebd448..88b89fc927 100644
--- a/Zend/zend_gc.c
+++ b/Zend/zend_gc.c
@@ -203,6 +203,7 @@ ZEND_API void gc_zobj_possible_root(zval *zv TSRMLS_DC)
zv->refcount__gc++;
gc_collect_cycles(TSRMLS_C);
zv->refcount__gc--;
+ obj = &EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(zv)].bucket.obj;
GC_SET_PURPLE(obj->buffered);
newRoot = GC_G(unused);
}