diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-20 13:59:00 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-20 13:59:00 +0000 |
commit | 13ac04b8e504ba5b0d531bee43d602e6980e2e20 (patch) | |
tree | 8f91eea07029b467713f840d87023f907d9f8f37 /main/main.c | |
parent | cd3acbd78554a94725ad3f7a82bb1a2d6c4f61d8 (diff) | |
download | php-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.c | 2 |
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)); } |