You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fda4ac7
Browse filesBrowse the repository at this point in the historyBrowse files
ext/soap: report invalid SoapClient options without a bailout
The SoapClient constructor reported a missing "uri" or "location" option in non-WSDL mode and an invalid "encoding" option with php_error_docref(E_ERROR, ...). As with WSDL errors, SoapClient turned the fatal error into a SoapFault and caught the bailout in SOAP_CLIENT_END_CODE(), with gc_protect(1) already set, so the cycle collector stayed off for the rest of the request (GH-10026). Reported in #10026 (comment).
These four errors now go through soap_client_option_error(), which throws the same SoapFault ("SoapClient::__construct(): <message>", fault code "Client", also stored in __soap_fault), and the constructor returns. With the "exceptions" option disabled it is the same fatal error as before. The option is read after "uri" and "location" are checked, so as before those two errors are a SoapFault even then.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments