Use ZVAL_COPY() instead og ZVAL_DUP(), because fault is an object

This commit is contained in:
Dmitry Stogov 2018-01-17 17:48:36 +03:00
parent b19d81e0da
commit 515b0508e0

View File

@ -2041,7 +2041,7 @@ PHP_METHOD(SoapServer, addSoapHeader)
*p = emalloc(sizeof(soapHeader));
memset(*p, 0, sizeof(soapHeader));
ZVAL_NULL(&(*p)->function_name);
ZVAL_DUP(&(*p)->retval, fault);
ZVAL_COPY(&(*p)->retval, fault);
SOAP_SERVER_END_CODE();
}