From 16fbcf71889b91a9132fe0616120f1956229cb21 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 22 Nov 2011 19:18:34 +0000 Subject: - Fix the fix (thanks Chris Jones!) --- ext/mbstring/php_mbregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mbstring/php_mbregex.c') 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; } -- cgit v1.2.1