Patch non-http-endpoint-handling for *General Issues Bug #50698
Patch version 2010-04-02 18:47 UTC
Return to Bug #50698 |
Download this patch
Patch Revisions:
Developer: zippy1981@gmail.com
Index: php_sdl.c
===================================================================
--- php_sdl.c (revision 297347)
+++ php_sdl.c (working copy)
@@ -832,7 +832,12 @@
if (strncmp((char*)tmp->children->content, WSDL_HTTP_TRANSPORT, sizeof(WSDL_HTTP_TRANSPORT)) == 0) {
soapBinding->transport = SOAP_TRANSPORT_HTTP;
} else {
- soap_error1(E_ERROR, "Parsing WSDL: PHP-SOAP doesn't support transport '%s'", tmp->children->content);
+ // Since this is an E_NOTICE severity message, it will disappear into the ether.
+ soap_error1(E_NOTICE, "Parsing WSDL: PHP-SOAP doesn't support transport '%s'", tmp->children->content);
+ efree(soapBinding);
+ efree(tmpbinding);
+ trav = trav->next;
+ continue;
}
}
}
@@ -1128,6 +1133,10 @@
soap_error0(E_ERROR, "Parsing WSDL: Couldn't bind to service");
}
+ if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) {
+ soap_error0(E_ERROR, "Parsing WSDL: Could not find any usable binding services in WSDL.");
+ }
+
zend_hash_destroy(&ctx.messages);
zend_hash_destroy(&ctx.bindings);
zend_hash_destroy(&ctx.portTypes);
|