From: Dmitry Stogov Date: Fri, 21 May 2004 14:50:19 +0000 (+0000) Subject: Fixed bug #28239 (No results returned on SOAP call, no error given) X-Git-Tag: RELEASE_0_1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9bb0d77a08dd9f0078600b304aea570ffc9bacb;p=php Fixed bug #28239 (No results returned on SOAP call, no error given) --- diff --git a/NEWS b/NEWS index 99b4930b9e..fe627b2395 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, PHP 5 Release Candidate 3 +- Fixed bug #28239 (No results returned on SOAP call, no error given). (Dmitry) - Added ability to refer to existing .ini variables from within .ini files, as in: open_basedir = ${open_basedir} ":/new/dir" diff --git a/ext/soap/php_packet_soap.c b/ext/soap/php_packet_soap.c index 68cb83b77c..b78fdee888 100644 --- a/ext/soap/php_packet_soap.c +++ b/ext/soap/php_packet_soap.c @@ -268,11 +268,16 @@ int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunction val = cur; } else { val = get_node(cur->children, param->paramName); - if (val == NULL && res_count == 1) { - val = get_node(cur->children, "return"); - } - if (val == NULL && res_count == 1) { - val = get_node(cur->children, "result"); + if (res_count == 1) { + if (val == NULL) { + val = get_node(cur->children, "return"); + } + if (val == NULL) { + val = get_node(cur->children, "result"); + } + if (val == NULL && cur->children && cur->children->next == NULL) { + val = cur->children; + } } } }