From 559c254f8f575e5cdd863314edfd11e783b116a8 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 6 Mar 2001 15:00:08 +0000 Subject: [PATCH] Avoid writing to error_log in case of aborted connections. --- sapi/apache/mod_php4.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 86deb31897..8772fdb705 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -124,10 +124,8 @@ static int sapi_apache_ub_write(const char *str, uint str_length) 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; -- 2.50.1