From: Ilia Alshanetsky Date: Thu, 7 Oct 2004 23:10:35 +0000 (+0000) Subject: Fixed bug #30356 (str_ireplace() does not work on all strings). X-Git-Tag: PRE_NEW_VM_GEN_PATCH~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24761980862a7eab52f61d2c676d47e34c77ec61;p=php Fixed bug #30356 (str_ireplace() does not work on all strings). --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 3eb4e8f707..e5b694d124 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2990,7 +2990,7 @@ PHPAPI int php_char_to_str_ex(char *str, uint len, char from, char *to, int to_l } } - if (char_count == 0) { + if (char_count == 0 && case_sensitivity) { ZVAL_STRINGL(result, str, len, 1); return 0; }