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 | c4464402350074b65c82f89a793bdbb91b46f571 (patch) | |
tree | 9d89872291bb23f53aea87d35f2ea6b0a0cbf90b /ext/mbstring | |
parent | b0b58c3d08168d7b06eb90f6f58eac2569625090 (diff) | |
download | php-git-c4464402350074b65c82f89a793bdbb91b46f571.tar.gz |
- Fix the fix (thanks Chris Jones!)
Diffstat (limited to 'ext/mbstring')
-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 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; } |