From: Dmitry Stogov Date: Wed, 17 Jan 2018 00:01:56 +0000 (+0300) Subject: Use SEPARATE_ARRAY X-Git-Tag: php-7.3.0alpha1~607 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e1fdd2371d8b773ebcf5efb60519a893d260405;p=php Use SEPARATE_ARRAY --- diff --git a/ext/filter/filter.c b/ext/filter/filter.c index f1e3f1ae37..72a302ae61 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -510,8 +510,8 @@ static void php_zval_filter_recursive(zval *value, zend_long filter, zend_long f ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(value), element) { ZVAL_DEREF(element); - SEPARATE_ZVAL_NOREF(element); if (Z_TYPE_P(element) == IS_ARRAY) { + SEPARATE_ARRAY(element); php_zval_filter_recursive(element, filter, flags, options, charset, copy); } else { php_zval_filter(element, filter, flags, options, charset, copy);