mirror of
https://github.com/php/php-src.git
synced 2026-04-05 15:12:39 +02:00
Change checks that should be always true into ZEND_ASSERT() (some edge cases may be trapped here).
This commit is contained in:
@@ -34,7 +34,9 @@ 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);
|
||||
zend_string_free(str);
|
||||
ZEND_ASSERT(!ZSTR_IS_INTERNED(str));
|
||||
ZEND_ASSERT(GC_REFCOUNT(str) == 0);
|
||||
pefree(str, GC_FLAGS(str) & IS_STR_PERSISTENT);
|
||||
break;
|
||||
}
|
||||
case IS_ARRAY: {
|
||||
|
||||
Reference in New Issue
Block a user