From 4a475a4976db92e71949786cdf5990c61514261e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 4 Jul 2018 19:22:24 +0300 Subject: Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors. --- ext/iconv/iconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/iconv/iconv.c') diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 7070454433..bdd4a26da5 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -2435,7 +2435,7 @@ PHP_FUNCTION(iconv_mime_decode_headers) if (err != PHP_ICONV_ERR_SUCCESS) { _php_iconv_show_error(err, charset, "???"); - zval_dtor(return_value); + zend_array_destroy(Z_ARR_P(return_value)); RETVAL_FALSE; } } -- cgit v1.2.1