diff --git a/ext/soap/soap.c b/ext/soap/soap.c index aafc761ee5703..8015351f1b573 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -1531,7 +1531,7 @@ PHP_METHOD(SoapServer, handle) doc_request = soap_xmlParseMemory(post_data, post_data_length); } } else { - zval_ptr_dtor(&retval); + zval_dtor(&retval); return; } } else {