diff options
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 1b018f259b..55cc0da7e5 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -328,7 +328,7 @@ static void _pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* Get function parameters and do error-checking. */ switch(ARG_COUNT(ht)) { case 2: - if (zend_get_parameters_ex(2, ®ex, &subject) == FAILURE) { + if (global || zend_get_parameters_ex(2, ®ex, &subject) == FAILURE) { WRONG_PARAM_COUNT; } break; |