From: Stanislav Malyshev Date: Wed, 20 Oct 2004 15:27:25 +0000 (+0000) Subject: fix HEAD problem: if some output is attempted in shutdown, X-Git-Tag: php-4.3.10RC1~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62e23967ee435f78ce259b5f1d009591e98a5278;p=php fix HEAD problem: if some output is attempted in shutdown, it bails out from shutdown sequence, which is bad --- diff --git a/main/output.c b/main/output.c index 0f530942e0..bc3bf52627 100644 --- a/main/output.c +++ b/main/output.c @@ -703,6 +703,9 @@ static 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(); zend_bailout(); }