diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-03-06 22:07:28 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-03-06 22:07:28 +0400 |
commit | fff3c54f9e2b5ca17e8725e29454504ba55accc9 (patch) | |
tree | 3f9e306d7880b12eb9d275f0af4f922d944b33ab /ext/pcre/php_pcre.c | |
parent | 10c7f2ddbc98dec21e3060fc4c9319465438c9a9 (diff) | |
download | php-git-fff3c54f9e2b5ca17e8725e29454504ba55accc9.tar.gz |
Added check
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 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, |