projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
11e10af
)
fix http_get_request_body_stream() the same way like http_get_request_body()
author
Michael Wallner
<mike@php.net>
Tue, 21 Feb 2012 10:05:05 +0000
(10:05 +0000)
committer
Michael Wallner
<mike@php.net>
Tue, 21 Feb 2012 10:05:05 +0000
(10:05 +0000)
(SAPI may hang at shutdown if request body is larger than 4k)
http_api.c
patch
|
blob
|
history
diff --git
a/http_api.c
b/http_api.c
index aa5b97b88c056fe94be0f11311b06d2a98d24e3e..6b01a3bce7d43dda465fd49e8f98de828e76c2c1 100644
(file)
--- 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;