Skip to content

Commit 6467655

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix uninitialized (dummy) memory in php_strtr_array() (#14812)
2 parents 9c460bc + 7b74cad commit 6467655

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
@@ -3224,7 +3224,7 @@ PHP_FUNCTION(strtr)
32243224
/* case_sensitive */ true,
32253225
NULL));
32263226
} else {
3227-
zend_long dummy;
3227+
zend_long dummy = 0;
32283228
RETVAL_STR(php_str_to_str_ex(str,
32293229
ZSTR_VAL(str_key), ZSTR_LEN(str_key),
32303230
ZSTR_VAL(replace), ZSTR_LEN(replace), &dummy));

0 commit comments

Comments
 (0)