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
commite92204821a8827a80b73c46e046920e8629d5ff3 (patch)
treea0a7e5a528c15aa4d7045e1de165a2a363e358bf /ext/mbstring/php_mbregex.c
parentdef84f16ad108c37363cffdbb1b2e87d803f4e4f (diff)
downloadphp-git-e92204821a8827a80b73c46e046920e8629d5ff3.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 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;
}