Skip to content

Commit 4bd3a90

Browse files
authored
Use release_ex consistently in php_strtr_array_ex() (#20359)
Reduces code size from 2056 -> 2006 on x86-64 with GCC 15.2.1.
1 parent a979e9f commit 4bd3a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@ static void php_strtr_array_ex(zval *return_value, zend_string *input, HashTable
29722972
len = ZSTR_LEN(key_used);
29732973
if (UNEXPECTED(len > slen)) {
29742974
/* skip long patterns */
2975-
zend_string_release(key_used);
2975+
zend_string_release_ex(key_used, false);
29762976
continue;
29772977
}
29782978
if (len > maxlen) {

0 commit comments

Comments
 (0)