From 1354aa9ef4b09a586865610ae8589292e700dead Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 31 Jul 2006 15:31:01 +0000 Subject: [PATCH] Prevented possible double call in case of fault --- ext/soap/soap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/soap/soap.c b/ext/soap/soap.c index f3ecc708e2..135d6f49d4 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2866,8 +2866,10 @@ PHP_METHOD(SoapClient, __doRequest) if (SOAP_GLOBAL(features) & SOAP_WAIT_ONE_WAY_CALLS) { one_way = 0; } - if (one_way && make_http_soap_request(this_ptr, buf, buf_size, location, action, version, NULL, NULL TSRMLS_CC)) { - RETURN_EMPTY_STRING(); + if (one_way) { + if (make_http_soap_request(this_ptr, buf, buf_size, location, action, version, NULL, NULL TSRMLS_CC)) { + RETURN_EMPTY_STRING(); + } } else if (make_http_soap_request(this_ptr, buf, buf_size, location, action, version, &Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value) TSRMLS_CC)) { return_value->type = IS_STRING; -- 2.50.1