1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00

ext/soap: SoapServer::addSoapHeader() does not need bailout handler wrapper

As this methods never uses the bailout mechanism
This commit is contained in:
Gina Peter Banyard
2024-06-16 00:45:51 +01:00
parent 2459b3ae0d
commit 4626c17f41

View File

@@ -1720,13 +1720,10 @@ PHP_METHOD(SoapServer, addSoapHeader)
RETURN_THROWS();
}
SOAP_SERVER_BEGIN_CODE();
FETCH_THIS_SERVICE(service);
FETCH_THIS_SERVICE_NO_BAILOUT(service);
if (!service || !service->soap_headers_ptr) {
zend_throw_error(NULL, "SoapServer::addSoapHeader() may be called only during SOAP request processing");
SOAP_SERVER_END_CODE();
RETURN_THROWS();
}
@@ -1738,8 +1735,6 @@ PHP_METHOD(SoapServer, addSoapHeader)
memset(*p, 0, sizeof(soapHeader));
ZVAL_NULL(&(*p)->function_name);
ZVAL_OBJ_COPY(&(*p)->retval, Z_OBJ_P(fault));
SOAP_SERVER_END_CODE();
}
/* }}} */