From: Michael Wallner Date: Tue, 21 Feb 2012 10:05:05 +0000 (+0000) Subject: fix http_get_request_body_stream() the same way like http_get_request_body() X-Git-Tag: RELEASE_1_7_2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a2577d5a478ad62398cb8bafb7ad295cf9a8bdfd;p=m6w6%2Fext-http fix http_get_request_body_stream() the same way like http_get_request_body() (SAPI may hang at shutdown if request body is larger than 4k) --- diff --git a/http_api.c b/http_api.c index aa5b97b..6b01a3b 100644 --- a/http_api.c +++ b/http_api.c @@ -410,6 +410,7 @@ PHP_HTTP_API php_stream *_http_get_request_body_stream(TSRMLS_D) int len; while (0 < (len = sapi_module.read_post(buf, 4096 TSRMLS_CC))) { + SG(read_post_bytes) += len; php_stream_write(s, buf, len); if (len < 4096) { break;