summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-10-18 20:10:35 +0800
committerXinchen Hui <laruence@php.net>2012-10-18 20:10:35 +0800
commite88cdaa0143aacd2d765eb0560452ea28e327e41 (patch)
tree1b1eededa92c7116c679980ef990764ee09f588e /Zend
parent8bd5e15ff7a57791956c4017ee8fb4a8ac0d8d2e (diff)
downloadphp-git-e88cdaa0143aacd2d765eb0560452ea28e327e41.tar.gz
better fix for #63055
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_variables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index c7901085f8..2b2ca0f2d1 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -40,6 +40,8 @@ ZEND_API void _zval_dtor_func(zval *zvalue ZEND_FILE_LINE_DC)
TSRMLS_FETCH();
if (zvalue->value.ht && (zvalue->value.ht != &EG(symbol_table))) {
+ /* break possible cycles */
+ Z_TYPE_P(zvalue) = IS_NULL;
zend_hash_destroy(zvalue->value.ht);
FREE_HASHTABLE(zvalue->value.ht);
}