diff options
author | Zeev Suraski <zeev@php.net> | 2001-03-06 15:00:08 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-03-06 15:00:08 +0000 |
commit | 559c254f8f575e5cdd863314edfd11e783b116a8 (patch) | |
tree | bade0cd761dd7abab22a5c43eb62b8ce20847db1 | |
parent | 7c2ea02288b0c5b607c85e21b4f51c8082d61255 (diff) | |
download | php-git-559c254f8f575e5cdd863314edfd11e783b116a8.tar.gz |
Avoid writing to error_log in case of aborted connections.
-rw-r--r-- | sapi/apache/mod_php4.c | 4 |
1 files changed, 1 insertions, 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; |