From: Dmitry Stogov Date: Wed, 19 Mar 2014 21:41:55 +0000 (+0400) Subject: Fixed GC X-Git-Tag: POST_PHPNG_MERGE~412^2~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=373855ef492d2881fe06028668a13011825313e4;p=php Fixed GC --- diff --git a/Zend/zend_objects_API.h b/Zend/zend_objects_API.h index 61147dd8c6..7be815e9de 100644 --- a/Zend/zend_objects_API.h +++ b/Zend/zend_objects_API.h @@ -67,7 +67,9 @@ #define OBJ_RELEASE(obj) do { \ zend_object *_obj = (obj); \ if (--_obj->gc.refcount == 0) { \ - zend_objects_store_del(_obj TSRMLS_CC); \ + zend_objects_store_del(_obj TSRMLS_CC); \ + } else { \ + gc_possible_root(_obj TSRMLS_CC); \ } \ } while (0)