- Fix str_replace with unicode strings as key

This commit is contained in:
Johannes Schlüter 2006-05-28 21:09:58 +00:00
parent 04766b7933
commit 40da89d6b9

View file

@ -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;