mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use release_ex consistently in php_strtr_array_ex() (#20359)
Reduces code size from 2056 -> 2006 on x86-64 with GCC 15.2.1.
This commit is contained in:
@@ -2972,7 +2972,7 @@ static void php_strtr_array_ex(zval *return_value, zend_string *input, HashTable
|
||||
len = ZSTR_LEN(key_used);
|
||||
if (UNEXPECTED(len > slen)) {
|
||||
/* skip long patterns */
|
||||
zend_string_release(key_used);
|
||||
zend_string_release_ex(key_used, false);
|
||||
continue;
|
||||
}
|
||||
if (len > maxlen) {
|
||||
|
||||
Reference in New Issue
Block a user