cvs: php4 /sapi/apache mod_php4.c
| From: | Zeev Suraski | Date: | Tue, 06 Mar 2001 15:00:08 +0000 |
| Subject: | cvs: php4 /sapi/apache mod_php4.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4408@lists.php.net to get a copy of this message | ||
zeev Tue Mar 6 07:00:08 2001 EDT
Modified files:
/php4/sapi/apache mod_php4.c
Log:
Avoid writing to error_log in case of aborted connections.
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.89 php4/sapi/apache/mod_php4.c:1.90
--- php4/sapi/apache/mod_php4.c:1.89 Sun Feb 25 22:07:35 2001
+++ php4/sapi/apache/mod_php4.c Tue Mar 6 07:00:08 2001
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.89 2001/02/26 06:07:35 andi Exp $ */
+/* $Id: mod_php4.c,v 1.90 2001/03/06 15:00:08 zeev Exp $ */
#define NO_REGEX_EXTRA_H
#ifdef WIN32
@@ -124,10 +124,8 @@
if (SG(server_context)) {
ret = rwrite(str, str_length, (request_rec *) SG(server_context));
- } else {
- ret = fwrite(str, 1, str_length, stderr);
}
- if(ret != str_length) {
+ if (ret != str_length) {
php_handle_aborted_connection();
}
return ret;