From: Zeev Suraski Date: Tue, 6 Mar 2001 15:00:08 +0000 (+0000) Subject: Avoid writing to error_log in case of aborted connections. X-Git-Tag: php-4.0.5RC1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=559c254f8f575e5cdd863314edfd11e783b116a8;p=php Avoid writing to error_log in case of aborted connections. --- 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;