From f799da0a21151c98ec2b1b768d041346c221a1af Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 20 Oct 2004 15:31:06 +0000 Subject: [PATCH] MF4: fix double bailout in HEAD when output is attempted from shutdown --- main/output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/output.c b/main/output.c index 7505066196..14303fd9f6 100644 --- a/main/output.c +++ b/main/output.c @@ -698,6 +698,9 @@ PHPAPI int php_ub_body_write(const char *str, uint str_length TSRMLS_DC) int result = 0; if (SG(request_info).headers_only) { + if(SG(headers_sent)) { + return 0; + } php_header(TSRMLS_C); zend_bailout(); } -- 2.50.1