]> 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 d77ff95bfa0a17d6c5702a6e191de5555417ecc2..db5126ed72d778a84d0e1d74a66449f7b2c6ddfb 100644 (file)
@@ -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;
        }