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:
1e9ae50
)
fix hang in SAPI deactivate when body is 4096 bytes or more
author
Rob Richards
<rrichards@php.net>
Mon, 18 Apr 2011 08:24:49 +0000
(08:24 +0000)
committer
Rob Richards
<rrichards@php.net>
Mon, 18 Apr 2011 08:24:49 +0000
(08:24 +0000)
http_api.c
patch
|
blob
|
history
diff --git
a/http_api.c
b/http_api.c
index 1943e126a1f4d5193c6ca36d26e75cb09a71097a..183a44c01f7683eba53998504f02f6244cc82a30 100644
(file)
--- a/
http_api.c
+++ b/
http_api.c
@@
-356,6
+356,7
@@
PHP_HTTP_API STATUS _http_get_request_body_ex(char **body, size_t *length, zend_
HTTP_G->read_post_data = 1;
while (0 < (len = sapi_module.read_post(buf, 4096 TSRMLS_CC))) {
+ SG(read_post_bytes) += len;
*body = erealloc(*body, *length + len + 1);
memcpy(*body + *length, buf, len);
*length += len;