iliaa           Thu Oct  7 19:10:38 2004 EDT

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  Fixed bug #30356 (str_ireplace() does not work on all strings).
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.422&r2=1.423&ty=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.422 php-src/ext/standard/string.c:1.423
--- php-src/ext/standard/string.c:1.422 Mon Jul 19 03:19:45 2004
+++ php-src/ext/standard/string.c       Thu Oct  7 19:10:35 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.422 2004/07/19 07:19:45 andi Exp $ */
+/* $Id: string.c,v 1.423 2004/10/07 23:10:35 iliaa Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -2990,7 +2990,7 @@
                }
        }
 
-       if (char_count == 0) {
+       if (char_count == 0 && case_sensitivity) {
                ZVAL_STRINGL(result, str, len, 1);
                return 0;
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to