summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-03-06 22:07:28 +0400
committerDmitry Stogov <dmitry@zend.com>2014-03-06 22:07:28 +0400
commitfff3c54f9e2b5ca17e8725e29454504ba55accc9 (patch)
tree3f9e306d7880b12eb9d275f0af4f922d944b33ab /ext/pcre/php_pcre.c
parent10c7f2ddbc98dec21e3060fc4c9319465438c9a9 (diff)
downloadphp-git-fff3c54f9e2b5ca17e8725e29454504ba55accc9.tar.gz
Added check
Diffstat (limited to 'ext/pcre/php_pcre.c')
-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 83844b1455..ce7b04cdf8 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -539,7 +539,7 @@ static void php_do_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* {{{ *
RETURN_FALSE;
}
- if (subpats) {
+ if (subpats && Z_TYPE_P(subpats) == IS_REFERENCE) {
subpats = Z_REFVAL_P(subpats);
}
php_pcre_match_impl(pce, subject, subject_len, return_value, subpats,