From b9bb0d77a08dd9f0078600b304aea570ffc9bacb Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 21 May 2004 14:50:19 +0000 Subject: [PATCH] Fixed bug #28239 (No results returned on SOAP call, no error given) --- NEWS | 1 + ext/soap/php_packet_soap.c | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) 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; + } } } } -- 2.40.0