From: Johannes Schlüter Date: Sun, 28 May 2006 21:09:58 +0000 (+0000) Subject: - Fix str_replace with unicode strings as key X-Git-Tag: BEFORE_NEW_OUTPUT_API~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40da89d6b9de42de55aa09a3380f256b75aea528;p=php - Fix str_replace with unicode strings as key --- diff --git a/ext/standard/string.c b/ext/standard/string.c index ea52fcb51a..978546e9e7 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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;