summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-11-22 19:18:34 +0000
committerFelipe Pena <felipe@php.net>2011-11-22 19:18:34 +0000
commit16fbcf71889b91a9132fe0616120f1956229cb21 (patch)
tree047cc6aa3741869bba215434daf0ed9451023729 /ext/mbstring/php_mbregex.c
parentfe1bf12552cec451dbcc7e83d58c2f9c3295185d (diff)
downloadphp-git-16fbcf71889b91a9132fe0616120f1956229cb21.tar.gz
- Fix the fix (thanks Chris Jones!)
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
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;
}