From: Ilia Alshanetsky Date: Fri, 3 Nov 2006 19:56:07 +0000 (+0000) Subject: MFB: Fixed bug #39361 (Removed warning on empty haystack inside mb_strstr()). X-Git-Tag: RELEASE_1_0_0RC1~1141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fab0dd3b6670b6a23061d5de28b2c4bb748df12e;p=php MFB: Fixed bug #39361 (Removed warning on empty haystack inside mb_strstr()). --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index df5cd861d3..41a30e9990 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1821,10 +1821,6 @@ PHP_FUNCTION(mb_strrchr) } } - 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;