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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index 1d3d2a66a7..7ff0916e7c 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -34,9 +34,13 @@ ZEND_API void ZEND_FASTCALL _zval_dtor_func(zend_refcounted *p ZEND_FILE_LINE_DC
case IS_STRING: {
zend_string *str = (zend_string*)p;
CHECK_ZVAL_STRING_REL(str);
+#if ZEND_RC_DEBUG
ZEND_ASSERT(!ZSTR_IS_INTERNED(str));
ZEND_ASSERT(GC_REFCOUNT(str) == 0);
pefree(str, GC_FLAGS(str) & IS_STR_PERSISTENT);
+#else
+ zend_string_free(str);
+#endif
break;
}
case IS_ARRAY: {