summaryrefslogtreecommitdiff
path: root/ext/filter
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-01-17 03:01:56 +0300
committerDmitry Stogov <dmitry@zend.com>2018-01-17 03:01:56 +0300
commit6e1fdd2371d8b773ebcf5efb60519a893d260405 (patch)
tree51de8fbd18f8515eb3167a94e13dee12c7c957d4 /ext/filter
parent5d456c1c6670fff1380238175daffe83443bc445 (diff)
downloadphp-git-6e1fdd2371d8b773ebcf5efb60519a893d260405.tar.gz
Use SEPARATE_ARRAY
Diffstat (limited to 'ext/filter')
-rw-r--r--ext/filter/filter.c2
1 files changed, 1 insertions, 1 deletions
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);