From 82d975d6710d29e9b16c1cc25f7058132dc4176e Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 4 Sep 1999 20:37:24 +0000 Subject: Might as well bail as soon as we know we should since this is now possible. We still need to set our connection status bit field so a shutdown function can figure out if a script was terminated due to an abort, timeout or finished normally. --- mod_php4.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mod_php4.c') diff --git a/mod_php4.c b/mod_php4.c index 65d52df220..e6c330e149 100644 --- a/mod_php4.c +++ b/mod_php4.c @@ -103,6 +103,7 @@ static int zend_apache_ub_write(const char *str, uint str_length) } if(ret != str_length) { PG(connection_status) = PHP_CONNECTION_ABORTED; + if(!PG(ignore_user_abort)) zend_bailout(); } return ret; } -- cgit v1.2.1