summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c4
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;