cvs: php4 /sapi/apache mod_php4.c
| From: | Stefan Esser | Date: | Sun, 18 Aug 2002 13:05:44 +0000 |
| Subject: | cvs: php4 /sapi/apache mod_php4.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13455@lists.php.net to get a copy of this message | ||
sesser Sun Aug 18 09:05:44 2002 EDT
Modified files:
/php4/sapi/apache mod_php4.c
Log:
make POST requests work again
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.136 php4/sapi/apache/mod_php4.c:1.137
--- php4/sapi/apache/mod_php4.c:1.136 Thu Aug 15 19:59:47 2002
+++ php4/sapi/apache/mod_php4.c Sun Aug 18 09:05:44 2002
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.136 2002/08/15 23:59:47 zeev Exp $ */
+/* $Id: mod_php4.c,v 1.137 2002/08/18 13:05:44 sesser Exp $ */
#include "php_apache_http.h"
@@ -135,7 +135,9 @@
* 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) {