diff options
| author | Hartmut Holzgraefe <hholzgra@php.net> | 2002-11-21 10:29:11 +0000 |
|---|---|---|
| committer | Hartmut Holzgraefe <hholzgra@php.net> | 2002-11-21 10:29:11 +0000 |
| commit | fb5ac5d28694480d307deabc41e5765d9706217e (patch) | |
| tree | 12eec01c42a60f5cc6d4ab340db2ab804a205cca /main/SAPI.c | |
| parent | 5d0f205df8a9fb23beb226adfa899e7308cd031b (diff) | |
| download | php-git-fb5ac5d28694480d307deabc41e5765d9706217e.tar.gz | |
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 ...
Diffstat (limited to 'main/SAPI.c')
| -rw-r--r-- | main/SAPI.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 91186311db..fd9b089bc5 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -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; } } } |
