From 27a84800287f5c4ea8df10dba152dcdf38e874b7 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 29 Oct 2000 16:01:02 +0000 Subject: Add/unify aborted connection handling --- sapi/apache/mod_php4.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sapi/apache/mod_php4.c') diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index eea725287b..5245e1e31e 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -126,7 +126,6 @@ static int sapi_apache_ub_write(const char *str, uint str_length) { int ret; SLS_FETCH(); - PLS_FETCH(); if (SG(server_context)) { ret = rwrite(str, str_length, (request_rec *) SG(server_context)); @@ -134,10 +133,7 @@ static int sapi_apache_ub_write(const char *str, uint str_length) ret = fwrite(str, 1, str_length, stderr); } if(ret != str_length) { - PG(connection_status) = PHP_CONNECTION_ABORTED; - if (!PG(ignore_user_abort)) { - zend_bailout(); - } + php_handle_aborted_connection(); } return ret; } -- cgit v1.2.1