Skip to content

Commit eab4765

Browse files
committed
ext/soap: SoapServer::addSoapHeader() does not need bailout handler wrapper
As this methods never uses the bailout mechanism
1 parent 03ff8d1 commit eab4765

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ext/soap/soap.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,13 +1720,10 @@ PHP_METHOD(SoapServer, addSoapHeader)
17201720
RETURN_THROWS();
17211721
}
17221722

1723-
SOAP_SERVER_BEGIN_CODE();
1724-
1725-
FETCH_THIS_SERVICE(service);
1723+
FETCH_THIS_SERVICE_NO_BAILOUT(service);
17261724

17271725
if (!service || !service->soap_headers_ptr) {
17281726
zend_throw_error(NULL, "SoapServer::addSoapHeader() may be called only during SOAP request processing");
1729-
SOAP_SERVER_END_CODE();
17301727
RETURN_THROWS();
17311728
}
17321729

@@ -1738,8 +1735,6 @@ PHP_METHOD(SoapServer, addSoapHeader)
17381735
memset(*p, 0, sizeof(soapHeader));
17391736
ZVAL_NULL(&(*p)->function_name);
17401737
ZVAL_OBJ_COPY(&(*p)->retval, Z_OBJ_P(fault));
1741-
1742-
SOAP_SERVER_END_CODE();
17431738
}
17441739
/* }}} */
17451740

0 commit comments

Comments
 (0)