summaryrefslogtreecommitdiff
path: root/ext/soap
diff options
context:
space:
mode:
authorDavid Coallier <davidc@php.net>2008-05-07 14:57:56 +0000
committerDavid Coallier <davidc@php.net>2008-05-07 14:57:56 +0000
commit3a37e3f5ebb8eaec0b1c826dd3dc5e0f2c939a2a (patch)
tree59cfc39b3ef1eca59d8622399a974e1298bdb748 /ext/soap
parent8a346e12571ebbc952df9921b25c52e0ceba1e11 (diff)
downloadphp-git-3a37e3f5ebb8eaec0b1c826dd3dc5e0f2c939a2a.tar.gz
- Fixed Bug #44811: Improved error message when creating a new
SoapClient has invalid data.
Diffstat (limited to 'ext/soap')
-rw-r--r--ext/soap/php_sdl.c7
1 files changed, 6 insertions, 1 deletions
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);