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. --- sapi/phpdbg/phpdbg_webdata_transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_webdata_transfer.c') diff --git a/sapi/phpdbg/phpdbg_webdata_transfer.c b/sapi/phpdbg/phpdbg_webdata_transfer.c index 16c82a6118..a543f98ba7 100644 --- a/sapi/phpdbg/phpdbg_webdata_transfer.c +++ b/sapi/phpdbg/phpdbg_webdata_transfer.c @@ -171,5 +171,5 @@ PHPDBG_API void phpdbg_webdata_compress(char **msg, size_t *len) { *len = ZSTR_LEN(buf.s); } - zval_dtor(&array); + zend_array_destroy(Z_ARR(array)); } -- cgit v1.2.1