mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
This broke more than fixed. Fixes e.g. max_input_time.
This commit is contained in:
parent
a0853a17ed
commit
50b17c0f7d
10
main/SAPI.c
10
main/SAPI.c
@ -386,16 +386,6 @@ SAPI_API void sapi_deactivate(TSRMLS_D)
|
||||
zend_llist_destroy(&SG(sapi_headers).headers);
|
||||
if (SG(request_info).post_data) {
|
||||
efree(SG(request_info).post_data);
|
||||
} else if (SG(server_context)) {
|
||||
if(sapi_module.read_post) {
|
||||
/* make sure we've consumed all request input data */
|
||||
char dummy[SAPI_POST_BLOCK_SIZE];
|
||||
int read_bytes;
|
||||
|
||||
while((read_bytes = sapi_module.read_post(dummy, sizeof(dummy)-1 TSRMLS_CC)) > 0) {
|
||||
SG(read_post_bytes) += read_bytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (SG(request_info).raw_post_data) {
|
||||
efree(SG(request_info).raw_post_data);
|
||||
|
Loading…
Reference in New Issue
Block a user