]> granicus.if.org Git - php/commitdiff
Fix headers handling with output buffering
authorZeev Suraski <zeev@php.net>
Sat, 31 Mar 2001 22:53:19 +0000 (22:53 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 31 Mar 2001 22:53:19 +0000 (22:53 +0000)
ext/standard/output.c
main/output.c

index f7f0e7cbc8ae8d05ab7912cf2142408837211ce5..dd9199cc7fb905244839f0efb1d2f960ae6d2560 100644 (file)
@@ -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()) {
index f7f0e7cbc8ae8d05ab7912cf2142408837211ce5..dd9199cc7fb905244839f0efb1d2f960ae6d2560 100644 (file)
@@ -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()) {