From 40da89d6b9de42de55aa09a3380f256b75aea528 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Schl=C3=BCter?= Date: Sun, 28 May 2006 21:09:58 +0000 Subject: [PATCH] - Fix str_replace with unicode strings as key --- ext/standard/string.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.50.1