diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-03-27 11:50:45 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-03-27 11:50:45 +0400 |
commit | 54d559d893f07098e56bee4489d514726dc96f7d (patch) | |
tree | 431a0100d1d9d33c058ccf78703e7bec81e44157 /ext/pcre/php_pcre.c | |
parent | e2e99b06706ad2a7513d1415833abc71e9cd2d93 (diff) | |
download | php-git-54d559d893f07098e56bee4489d514726dc96f7d.tar.gz |
Replaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x))
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |