From: Dmitry Stogov Date: Mon, 21 May 2007 13:13:50 +0000 (+0000) Subject: Fixed bug #41337 WSDL parsing doesn't ignore non soap bindings X-Git-Tag: php-5.2.3RC1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d1dbff79de1bc0db621db4243e7b0442f1858ad;p=php Fixed bug #41337 WSDL parsing doesn't ignore non soap bindings --- diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index ec1d07e81a..b02629a437 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -717,7 +717,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC) trav2 = trav2->next; } if (!address) { - if (has_soap_port || trav->next) { + if (has_soap_port || trav->next || i < n-1) { efree(tmpbinding); trav = trav->next; continue; diff --git a/ext/soap/tests/bugs/bug41337_2.phpt b/ext/soap/tests/bugs/bug41337_2.phpt new file mode 100755 index 0000000000..d594d2515d --- /dev/null +++ b/ext/soap/tests/bugs/bug41337_2.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #41337 (WSDL parsing doesn't ignore non soap bindings) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +ok diff --git a/ext/soap/tests/bugs/bug41337_2.wsdl b/ext/soap/tests/bugs/bug41337_2.wsdl new file mode 100755 index 0000000000..46c078a0ea --- /dev/null +++ b/ext/soap/tests/bugs/bug41337_2.wsdl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ext/soap/tests/bugs/bug41337_2_1.wsdl b/ext/soap/tests/bugs/bug41337_2_1.wsdl new file mode 100755 index 0000000000..857dc6ccf6 --- /dev/null +++ b/ext/soap/tests/bugs/bug41337_2_1.wsdl @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +