From: David Coallier Date: Wed, 7 May 2008 15:45:02 +0000 (+0000) Subject: - Fixed bug #44811 (Improve error message when creating new SoapClient X-Git-Tag: RELEASE_2_0_0b1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e2f6d8c6f959fe37e8006b18a577b587d423766;p=php - Fixed bug #44811 (Improve error message when creating new SoapClient that contains invalid data) --- diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 7b5592f080..dc1d667bd0 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -240,7 +240,12 @@ static void load_wsdl_ex(char *struri, sdlCtx *ctx, int include TSRMLS_DC) 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);