Skip to content

Commit f799da0

Browse files
committed
MF4: fix double bailout in HEAD when output is attempted from shutdown
1 parent 1ef6c7a commit f799da0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/output.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ PHPAPI int php_ub_body_write(const char *str, uint str_length TSRMLS_DC)
698698
int result = 0;
699699

700700
if (SG(request_info).headers_only) {
701+
if(SG(headers_sent)) {
702+
return 0;
703+
}
701704
php_header(TSRMLS_C);
702705
zend_bailout();
703706
}

0 commit comments

Comments
 (0)