From 4626c17f41a67af40dfd778bfbad1cd26645c0d6 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sun, 16 Jun 2024 00:45:51 +0100 Subject: [PATCH] ext/soap: SoapServer::addSoapHeader() does not need bailout handler wrapper As this methods never uses the bailout mechanism --- ext/soap/soap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 5e864686141..101d5934140 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -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(); } /* }}} */