From: David Coallier Date: Wed, 7 May 2008 14:57:56 +0000 (+0000) Subject: - Fixed Bug #44811: Improved error message when creating a new X-Git-Tag: RELEASE_1_2_5~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a37e3f5ebb8eaec0b1c826dd3dc5e0f2c939a2a;p=php - Fixed Bug #44811: Improved error message when creating a new SoapClient has invalid data. --- diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 6be5c8284f..3d4c900d12 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -240,7 +240,12 @@ 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);