From: Dmitry Stogov Date: Thu, 24 Jan 2008 11:54:55 +0000 (+0000) Subject: Fixed possible GC failure bacause of EG(object_store).object_buckets reallocation X-Git-Tag: RELEASE_2_0_0a1~794 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d328000c476f42d08e215710f7a37907fbbf3ec8;p=php Fixed possible GC failure bacause of EG(object_store).object_buckets reallocation --- 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); }