summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-02-24 14:37:05 +0000
committerAndrei Zmievski <andrei@php.net>2000-02-24 14:37:05 +0000
commit2b9b11d3af416c3619cc7527bf192c5f6df46124 (patch)
treeb5df90ebd777f198c947d9a8ab15b992a4efc191 /ext/pcre
parentc401bbe22ef4a476cc18961841f531f5d1813a1f (diff)
downloadphp-git-2b9b11d3af416c3619cc7527bf192c5f6df46124.tar.gz
Fix bug #3599.
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c2
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, &regex, &subject) == FAILURE) {
+ if (global || zend_get_parameters_ex(2, &regex, &subject) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;