]> granicus.if.org Git - php/commitdiff
- Fix the fix (thanks Chris Jones!)
authorFelipe Pena <felipe@php.net>
Tue, 22 Nov 2011 19:18:34 +0000 (19:18 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 22 Nov 2011 19:18:34 +0000 (19:18 +0000)
ext/mbstring/php_mbregex.c

index 9bc87a59bd3c07ecd891d28a8c8bbadd0fff493a..7bb9d1e69c715662d844c88b3345b7fcbe97971f 100644 (file)
@@ -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;
        }