diff --git a/ext/standard/string.c b/ext/standard/string.c index e8c682a4cb7..0cc8af0ef36 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3275,7 +3275,7 @@ PHP_FUNCTION(strtr) /* case_sensitive */ true, NULL)); } else { - zend_long dummy; + zend_long dummy = 0; RETVAL_STR(php_str_to_str_ex(str, ZSTR_VAL(str_key), ZSTR_LEN(str_key), ZSTR_VAL(replace), ZSTR_LEN(replace), &dummy));