diff options
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r-- | sapi/apache/mod_php4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 4e9e1cf053..2d81b78935 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -135,7 +135,9 @@ int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC) * the rest of the request. RFC 2616 * */ - if( !ap_should_client_block(r) ) return total_read_bytes; + if (!SG(read_post_bytes) && !ap_should_client_block(r)) { + return total_read_bytes; + } handler = signal(SIGPIPE, SIG_IGN); while (total_read_bytes<count_bytes) { |