]> granicus.if.org Git - php/commitdiff
- Fix str_replace with unicode strings as key
authorJohannes Schlüter <johannes@php.net>
Sun, 28 May 2006 21:09:58 +0000 (21:09 +0000)
committerJohannes Schlüter <johannes@php.net>
Sun, 28 May 2006 21:09:58 +0000 (21:09 +0000)
ext/standard/string.c

index ea52fcb51a4d364893f4907a372527a32fde59ed..978546e9e7fd3f21a932e45e7700fa74655b2e35 100644 (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;