iliaa           Fri Nov  3 19:56:07 2006 UTC

  Modified files:              
    /php-src/ext/mbstring       mbstring.c 
  Log:
  MFB: Fixed bug #39361 (Removed warning on empty haystack inside mb_strstr()).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/mbstring.c?r1=1.262&r2=1.263&diff_format=u
Index: php-src/ext/mbstring/mbstring.c
diff -u php-src/ext/mbstring/mbstring.c:1.262 
php-src/ext/mbstring/mbstring.c:1.263
--- php-src/ext/mbstring/mbstring.c:1.262       Sun Oct  8 13:34:22 2006
+++ php-src/ext/mbstring/mbstring.c     Fri Nov  3 19:56:07 2006
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: mbstring.c,v 1.262 2006/10/08 13:34:22 bjori Exp $ */
+/* $Id: mbstring.c,v 1.263 2006/11/03 19:56:07 iliaa Exp $ */
 
 /*
  * PHP 4 Multibyte String module "mbstring"
@@ -1821,10 +1821,6 @@
                }
        }
 
-       if (haystack.len <= 0) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty haystack");
-               RETURN_FALSE;
-       }
        if (needle.len <= 0) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING,"Empty needle");
                RETURN_FALSE;

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

Reply via email to