From: Dmitry Stogov Date: Mon, 21 May 2007 13:14:02 +0000 (+0000) Subject: Fixed bug #41337 WSDL parsing doesn't ignore non soap bindings X-Git-Tag: RELEASE_1_4~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=778d557116cc93281a0743ea16007f30dca519ff;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 6d076344da..b791e9b223 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -717,7 +717,7 @@ static sdlPtr load_wsdl(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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +