com php-src: Fixed GC: Zend/zend_objects_API.h

From: Date: Wed, 19 Mar 2014 21:41:55 +0000
Subject: com php-src: Fixed GC: Zend/zend_objects_API.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77598@lists.php.net to get a copy of this message
Commit: 373855ef492d2881fe06028668a13011825313e4 Author: Dmitry Stogov <dmitry@zend.com> Thu, 20 Mar 2014 01:41:55 +0400 Parents: a6f09e48d7bf33788e2d8fb899bc43caa7cb4849 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=373855ef492d2881fe06028668a13011825313e4 Log: Fixed GC Changed paths: M Zend/zend_objects_API.h Diff: diff --git a/Zend/zend_objects_API.h b/Zend/zend_objects_API.h index 61147dd..7be815e 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)

« previous php.cvs (#77598) next »