From: Stefan Esser Date: Sun, 18 Aug 2002 13:05:44 +0000 (+0000) Subject: make POST requests work again X-Git-Tag: RELEASE_0_91~401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d2bc707526c745ed2283830a40ae1fd39928b6a;p=php make POST requests work again --- 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