From b6fb584505cfddcd20c9913e0931374a8ce33a3f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 5 Jul 2018 13:32:39 +0300 Subject: Replace zval_dtor() with specialized destructors --- ext/soap/php_encoding.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/soap/php_encoding.c') diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index c2aaf36797..0962e40118 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -971,7 +971,7 @@ static xmlNodePtr to_xml_hexbin(encodeTypePtr type, zval *data, int style, xmlNo xmlAddChild(ret, text); efree(str); if (data == &tmp) { - zval_dtor(&tmp); + zval_ptr_dtor_str(&tmp); } if (style == SOAP_ENCODED) { @@ -3069,7 +3069,9 @@ static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodeP } smart_str_free(&list); efree(str); - if (data == &tmp) {zval_dtor(&tmp);} + if (data == &tmp) { + zval_ptr_dtor_str(&tmp); + } } return ret; } -- cgit v1.2.1