From 54d559d893f07098e56bee4489d514726dc96f7d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 27 Mar 2014 11:50:45 +0400 Subject: Replaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x)) --- ext/pcre/php_pcre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 3298f52fb3..d03198cf6c 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 && Z_TYPE_P(subpats) == IS_REFERENCE) { + if (subpats && Z_ISREF_P(subpats)) { subpats = Z_REFVAL_P(subpats); } php_pcre_match_impl(pce, subject, subject_len, return_value, subpats, @@ -1778,7 +1778,7 @@ PHPAPI void php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return while ((entry = zend_hash_get_current_data(Z_ARRVAL_P(input))) != NULL) { zval subject, *ref_entry = NULL; - if (Z_TYPE_P(entry) == IS_REFERENCE) { + if (Z_ISREF_P(entry)) { ref_entry = entry; entry = Z_REFVAL_P(entry); } -- cgit v1.2.1