summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-20 13:59:00 +0000
committerZeev Suraski <zeev@php.net>2001-07-20 13:59:00 +0000
commit13ac04b8e504ba5b0d531bee43d602e6980e2e20 (patch)
tree8f91eea07029b467713f840d87023f907d9f8f37 /main/main.c
parentcd3acbd78554a94725ad3f7a82bb1a2d6c4f61d8 (diff)
downloadphp-git-13ac04b8e504ba5b0d531bee43d602e6980e2e20.tar.gz
Avoid getting bailouts on text output during shutdown. Text output is now
'officially' disabled during shutdown (this doesn't change the Apache module behavior, but may change behavior of other server modules, in which it was possible to emit output during shutdown; I think it's a good step towards consistency, though)
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index 7b5fcef09b..3bc12ab314 100644
--- a/main/main.c
+++ b/main/main.c
@@ -690,6 +690,8 @@ void php_request_shutdown(void *dummy)
SLS_FETCH();
PLS_FETCH();
+ php_output_set_status(0);
+
if (setjmp(EG(bailout))==0) {
php_end_ob_buffers((zend_bool)(SG(request_info).headers_only?0:1));
}