mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- Fixed bug #44811 (Improve error message when creating a new SoapClient that contains invalid data)
This commit is contained in:
parent
8256272540
commit
c5b386b8a3
@ -240,7 +240,13 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include
|
||||
wsdl = soap_xmlParseFile(struri TSRMLS_CC);
|
||||
|
||||
if (!wsdl) {
|
||||
soap_error1(E_ERROR, "Parsing WSDL: Couldn't load from '%s'", struri);
|
||||
xmlErrorPtr xmlErrorPtr = xmlGetLastError();
|
||||
|
||||
if (xmlErrorPtr) {
|
||||
soap_error2(E_ERROR, "Parsing WSDL: Couldn't load from '%s' : %s", struri, xmlErrorPtr->message);
|
||||
} else {
|
||||
soap_error1(E_ERROR, "Parsing WSDL: Couldn't load from '%s'", struri);
|
||||
}
|
||||
}
|
||||
|
||||
zend_hash_add(&ctx->docs, struri, strlen(struri)+1, (void**)&wsdl, sizeof(xmlDocPtr), NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user