From: Ilia Alshanetsky Date: Thu, 7 Oct 2004 23:11:20 +0000 (+0000) Subject: MFH: Fixed bug #30356 (str_ireplace() does not work on all strings). X-Git-Tag: php-5.0.3RC1~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c3962f79d1b13413c228d8ed8ae7807b73f1122;p=php MFH: Fixed bug #30356 (str_ireplace() does not work on all strings). --- diff --git a/NEWS b/NEWS index cbd1fbdb3d..419f83180d 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, PHP 5.0.3 - Fixed potential problems with unserializing invalid serialize data. (Marcus) +- Fixed bug #30356 (str_ireplace() does not work on all strings). (Ilia) - Fixed bug #30344 (Reflection::getModifierNames() returns too long strings). (Marcus) - Fixed bug #30282 (segfault when using unknown/unsupported diff --git a/ext/standard/string.c b/ext/standard/string.c index 4ee93264fb..79a0eeab0d 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2938,7 +2938,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; }