diff options
| author | Stanislav Malyshev <stas@php.net> | 2004-10-20 15:31:06 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2004-10-20 15:31:06 +0000 |
| commit | f799da0a21151c98ec2b1b768d041346c221a1af (patch) | |
| tree | 701ebb813fbfa9d7e42dd466b8041b6aec5df0f4 /main/output.c | |
| parent | 1ef6c7add145d5f0d9ed787fc5aa1dca57db5057 (diff) | |
| download | php-git-f799da0a21151c98ec2b1b768d041346c221a1af.tar.gz | |
MF4: fix double bailout in HEAD when output is attempted from shutdown
Diffstat (limited to 'main/output.c')
| -rw-r--r-- | main/output.c | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |
