mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Fix str_replace with unicode strings as key
This commit is contained in:
parent
04766b7933
commit
40da89d6b9
1 changed files with 1 additions and 0 deletions
|
@ -4925,6 +4925,7 @@ static void php_str_replace_common(INTERNAL_FUNCTION_PARAMETERS, int case_sensit
|
|||
switch (zend_hash_get_current_key_ex(Z_ARRVAL_PP(subject), &string_key,
|
||||
&string_key_len, &num_key, 0, NULL)) {
|
||||
case HASH_KEY_IS_STRING:
|
||||
case HASH_KEY_IS_UNICODE:
|
||||
add_assoc_zval_ex(return_value, string_key.s, string_key_len, result);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue