Skip to content
Discussion options

You must be logged in to vote

After testing the following on nginx + fpm and on frankenphp; the behaviour is indeed correct:

    headers_sent();
    ob_start();
    ob_start();
    var_dump(headers_sent()); // false
    flush();
    header("Content-Type: text/plain"); // notice: headers already sent
    var_dump(headers_sent()); // true

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@withinboredom
Comment options

@7-zete-7
Comment options

Comment options

You must be logged in to vote
1 reply
@7-zete-7
Comment options

Answer selected by withinboredom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants