From: Felipe Pena Date: Tue, 22 Nov 2011 19:18:34 +0000 (+0000) Subject: - Fix the fix (thanks Chris Jones!) X-Git-Tag: php-5.4.0RC2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e92204821a8827a80b73c46e046920e8629d5ff3;p=php - Fix the fix (thanks Chris Jones!) --- diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index d77ff95bfa..db5126ed72 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1254,7 +1254,7 @@ PHP_FUNCTION(mb_ereg_search_init) return; } - if (arg_pattern_len == 0) { + if (argc > 1 && arg_pattern_len == 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty pattern"); RETURN_FALSE; }