com php-src: Fixed GC bug: Zend/zend_variables.c

From: Date: Tue, 22 Jul 2014 14:39:58 +0000
Subject: com php-src: Fixed GC bug: Zend/zend_variables.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-79551@lists.php.net to get a copy of this message
Commit: f81956cb3edeccb2c796db7c11a092af6a5d3747 Author: Dmitry Stogov <dmitry@zend.com> Tue, 22 Jul 2014 18:39:58 +0400 Parents: 5fe7f799e043809f2fcd08ce164ff375b52d4283 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f81956cb3edeccb2c796db7c11a092af6a5d3747 Log: Fixed GC bug Changed paths: M Zend/zend_variables.c Diff: diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index b512c45..9f76d9f 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -44,8 +44,8 @@ ZEND_API void _zval_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC) if (arr != &EG(symbol_table)) { /* break possible cycles */ GC_TYPE(arr) = IS_NULL; - zend_hash_destroy(&arr->ht); GC_REMOVE_FROM_BUFFER(arr); + zend_hash_destroy(&arr->ht); efree(arr); } break; @@ -104,8 +104,8 @@ ZEND_API void _zval_dtor_func_for_ptr(zend_refcounted *p ZEND_FILE_LINE_DC) if (arr != &EG(symbol_table)) { /* break possible cycles */ GC_TYPE(arr) = IS_NULL; - zend_hash_destroy(&arr->ht); GC_REMOVE_FROM_BUFFER(arr); + zend_hash_destroy(&arr->ht); efree(arr); } break;

« previous php.cvs (#79551) next »