diff options
author | David Coallier <davidc@php.net> | 2008-05-07 15:23:10 +0000 |
---|---|---|
committer | David Coallier <davidc@php.net> | 2008-05-07 15:23:10 +0000 |
commit | c5b386b8a3055ae84ddc3863d9611ea100714140 (patch) | |
tree | 007700fc145496d6ed72ead4e9756b1347e3c540 /ext/soap/php_sdl.c | |
parent | 825627254090ba7480cc3ee29b5bc9db74e106d9 (diff) | |
download | php-git-c5b386b8a3055ae84ddc3863d9611ea100714140.tar.gz |
- Fixed bug #44811 (Improve error message when creating a new SoapClient that contains invalid data)
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index e8698e15da..07c3b5d657 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -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); |