mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
the apache 1.x sapi read_posts tests for SG(read_post_bytes) being
counted up, so lets make it happy although this value is not really needed in these cases ...
This commit is contained in:
parent
5d0f205df8
commit
fb5ac5d286
@ -96,6 +96,7 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count
|
||||
}
|
||||
}
|
||||
|
||||
SG(read_post_bytes) += read_bytes;
|
||||
return read_bytes;
|
||||
}
|
||||
|
||||
|
@ -390,8 +390,10 @@ SAPI_API void sapi_deactivate(TSRMLS_D)
|
||||
if(sapi_module.read_post) {
|
||||
/* make sure we've consumed all request input data */
|
||||
char dummy[SAPI_POST_BLOCK_SIZE];
|
||||
while(sapi_module.read_post(dummy, sizeof(dummy)-1 TSRMLS_CC) > 0) {
|
||||
/* empty loop body */
|
||||
int read_bytes;
|
||||
|
||||
while((read_bytes = sapi_module.read_post(dummy, sizeof(dummy)-1 TSRMLS_CC)) > 0) {
|
||||
SG(read_post_bytes) += read_bytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user