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.5.0alpha1~833 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16fbcf71889b91a9132fe0616120f1956229cb21;p=php - Fix the fix (thanks Chris Jones!) --- diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 9bc87a59bd..7bb9d1e69c 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -1319,7 +1319,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; }