1
0
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:
Niels Dossche
2025-11-02 15:05:44 +01:00
committed by GitHub
parent a979e9f897
commit 4bd3a9006e

View File

@@ -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) {