davidc          Wed May  7 15:23:11 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/soap   php_sdl.c 
  Log:
  - Fixed bug #44811 (Improve error message when creating a new SoapClient that 
contains invalid data)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_sdl.c?r1=1.88.2.12.2.9.2.2&r2=1.88.2.12.2.9.2.3&diff_format=u
Index: php-src/ext/soap/php_sdl.c
diff -u php-src/ext/soap/php_sdl.c:1.88.2.12.2.9.2.2 
php-src/ext/soap/php_sdl.c:1.88.2.12.2.9.2.3
--- php-src/ext/soap/php_sdl.c:1.88.2.12.2.9.2.2        Mon Dec 31 07:17:13 2007
+++ php-src/ext/soap/php_sdl.c  Wed May  7 15:23:10 2008
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_sdl.c,v 1.88.2.12.2.9.2.2 2007/12/31 07:17:13 sebastian Exp $ */
+/* $Id: php_sdl.c,v 1.88.2.12.2.9.2.3 2008/05/07 15:23:10 davidc Exp $ */
 
 #include "php_soap.h"
 #include "ext/libxml/php_libxml.h"
@@ -240,7 +240,13 @@
        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);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to