summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_variables.c')
-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 9ada1e4a7c..6e9834475f 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -41,6 +41,8 @@ ZEND_API void _zval_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC)
zend_array *arr = (zend_array*)p;
if (arr != &EG(symbol_table)) {
+ ZEND_ASSERT(GC_REFCOUNT(arr) <= 1);
+
/* break possible cycles */
GC_TYPE(arr) = IS_NULL;
GC_REMOVE_FROM_BUFFER(arr);