mirror of
https://github.com/php/php-src.git
synced 2026-04-08 08:33:06 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Use proper functions
This commit is contained in:
@@ -2544,7 +2544,7 @@ try_string_offset:
|
||||
}
|
||||
ZVAL_UNDEFINED_OP2();
|
||||
if (!(GC_FLAGS(str) & IS_ARRAY_IMMUTABLE) && GC_DELREF(str) == 0) {
|
||||
zend_string_release_ex(str, 0);
|
||||
zend_string_efree(str);
|
||||
ZVAL_NULL(result);
|
||||
return;
|
||||
}
|
||||
@@ -2561,7 +2561,7 @@ try_string_offset:
|
||||
}
|
||||
zend_error(E_WARNING, "String offset cast occurred");
|
||||
if (!(GC_FLAGS(str) & IS_ARRAY_IMMUTABLE) && GC_DELREF(str) == 0) {
|
||||
zend_string_release_ex(str, 0);
|
||||
zend_string_efree(str);
|
||||
ZVAL_NULL(result);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user