]> granicus.if.org Git - php/commitdiff
Fixed bug #30356 (str_ireplace() does not work on all strings).
authorIlia Alshanetsky <iliaa@php.net>
Thu, 7 Oct 2004 23:10:35 +0000 (23:10 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 7 Oct 2004 23:10:35 +0000 (23:10 +0000)
ext/standard/string.c

index 3eb4e8f707d145e12e3a898858a2eebfff097ecc..e5b694d1246bd764cb928b6cf524223b71485a64 100644 (file)
@@ -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;
        }