summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-06-18 07:23:58 +0000
committerDmitry Stogov <dmitry@php.net>2008-06-18 07:23:58 +0000
commit5429bfb51861786efa13a1edb741ed4b4e4970fd (patch)
treee0cbffeb1782765a7c56ab57bfb11f4e33c4190a /ext/soap/php_sdl.c
parentcbe23b9f2041a6b37fbeadc49963baf6ffc5827a (diff)
downloadphp-git-5429bfb51861786efa13a1edb741ed4b4e4970fd.tar.gz
Fixed SOAP binding selection
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 07c3b5d657..fcc90aa742 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -722,12 +722,12 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC)
}
trav2 = trav2->next;
}
- if (!address) {
+ if (!address || tmpbinding->bindingType == BINDING_HTTP) {
if (has_soap_port || trav->next || i < n-1) {
efree(tmpbinding);
trav = trav->next;
continue;
- } else {
+ } else if (!address) {
soap_error0(E_ERROR, "Parsing WSDL: No address associated with <port>");
}
}