mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Use proper functions
This commit is contained in:
commit
10cfe9f13b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue