diff options
| author | Dmitry Stogov <dmitry@php.net> | 2006-02-07 12:49:10 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2006-02-07 12:49:10 +0000 |
| commit | 73605400e842e3c0210c46e4980b9ea748db3886 (patch) | |
| tree | 8c6558f0df8144307b19744d98045bb21406da99 /ext/soap/php_http.c | |
| parent | 783190088274822a9a63b78edef97e6d20a7eb72 (diff) | |
| download | php-git-73605400e842e3c0210c46e4980b9ea748db3886.tar.gz | |
Fixed bug #36083 (SoapClient waits for responses on one-way operations)
Diffstat (limited to 'ext/soap/php_http.c')
| -rw-r--r-- | ext/soap/php_http.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 2e5ea04fa6..9a21371d44 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -679,6 +679,13 @@ try_again: return FALSE; } + if (!buffer) { + php_stream_close(stream); + zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); + zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); + return TRUE; + } + do { if (!get_http_headers(stream, &http_headers, &http_header_size TSRMLS_CC)) { if (http_headers) {efree(http_headers);} |
