summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/output.c b/ext/standard/output.c
index 3180c912a7..49199d6a8e 100644
--- a/ext/standard/output.c
+++ b/ext/standard/output.c
@@ -447,6 +447,7 @@ static int php_ub_body_write(const char *str, uint str_length)
OLS_FETCH();
if (SG(request_info).headers_only) {
+ php_header();
zend_bailout();
}
if (php_header()) {