diff options
author | Felipe Pena <felipe@php.net> | 2011-11-22 19:18:34 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2011-11-22 19:18:34 +0000 |
commit | e92204821a8827a80b73c46e046920e8629d5ff3 (patch) | |
tree | a0a7e5a528c15aa4d7045e1de165a2a363e358bf /ext/mbstring/php_mbregex.c | |
parent | def84f16ad108c37363cffdbb1b2e87d803f4e4f (diff) | |
download | php-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.c | 2 |
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; } |