Skip to content

Commit 5b673e9

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix uninitialized (dummy) memory in php_strtr_array() (#14812)
2 parents 8759971 + 6467655 commit 5b673e9

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
@@ -3445,7 +3445,7 @@ static void php_strtr_array(zval *return_value, zend_string *str, HashTable *fro
34453445
/* case_sensitive */ true,
34463446
NULL));
34473447
} else {
3448-
zend_long dummy;
3448+
zend_long dummy = 0;
34493449
RETVAL_STR(php_str_to_str_ex(str,
34503450
ZSTR_VAL(str_key), ZSTR_LEN(str_key),
34513451
ZSTR_VAL(replace), ZSTR_LEN(replace), &dummy));

0 commit comments

Comments
 (0)