]> granicus.if.org Git - php/commitdiff
Prevented possible double call in case of fault
authorDmitry Stogov <dmitry@php.net>
Mon, 31 Jul 2006 15:31:01 +0000 (15:31 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 31 Jul 2006 15:31:01 +0000 (15:31 +0000)
ext/soap/soap.c

index f3ecc708e2252af06fecdbdf3046cc7ed15e162e..135d6f49d445f8759c16ca1836539e97d7749610 100644 (file)
@@ -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;