From: Dmitry Stogov Date: Thu, 6 Mar 2014 18:07:28 +0000 (+0400) Subject: Added check X-Git-Tag: POST_PHPNG_MERGE~412^2~385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fff3c54f9e2b5ca17e8725e29454504ba55accc9;p=php Added check --- 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,