From c4464402350074b65c82f89a793bdbb91b46f571 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 22 Nov 2011 19:18:34 +0000 Subject: [PATCH] - Fix the fix (thanks Chris Jones!) --- ext/mbstring/php_mbregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index e28bdc4560..260b779805 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; } -- 2.50.1