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.
This commit is contained in:
Rasmus Lerdorf 1999-09-04 20:37:24 +00:00
parent 0bede914ab
commit 82d975d671
2 changed files with 4 additions and 3 deletions

View file

@ -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;
}