]> granicus.if.org Git - php/commitdiff
MFH: increase refcount when adding zval to the result array
authorAntony Dovgal <tony2001@php.net>
Wed, 19 Jul 2006 07:18:34 +0000 (07:18 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 19 Jul 2006 07:18:34 +0000 (07:18 +0000)
ext/filter/filter.c

index 203f0c16678d956a54641c9ce123c05e40db7d37..a8eacf6a10dd594a9f35307d6d9f915864949e71 100644 (file)
@@ -771,7 +771,7 @@ PHP_FUNCTION(input_get_args)
                        } else {
                                php_zval_filter(*tmp, filter, filter_flags, options, charset TSRMLS_CC);
                        }
-
+                       zval_add_ref(tmp);
                        add_assoc_zval(return_value, key, *tmp);
                } else {
                        add_assoc_null(return_value, key);