From fb045249e572c922fc7a2ea50cc8a428ab3607c6 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 10 May 2007 14:58:17 +0000 Subject: Fixed bug #41337 (WSDL parsing doesn't ignore non soap bindings) --- ext/soap/php_sdl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ext/soap/php_sdl.c') diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 923215228f..ec1d07e81a 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -654,6 +654,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC) for (i = 0; i < n; i++) { xmlNodePtr *tmp, service; xmlNodePtr trav, port; + int has_soap_port = 0; zend_hash_get_current_data(&ctx.services, (void **)&tmp); service = *tmp; @@ -716,8 +717,15 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC) trav2 = trav2->next; } if (!address) { - soap_error0(E_ERROR, "Parsing WSDL: No address associated with "); + if (has_soap_port || trav->next) { + efree(tmpbinding); + trav = trav->next; + continue; + } else { + soap_error0(E_ERROR, "Parsing WSDL: No address associated with "); + } } + has_soap_port = 1; location = get_attribute(address->properties, "location"); if (!location) { -- cgit v1.2.1