Closed drobertduke closed 10 years ago
Thanks for reporting this. Feel free to submit a PR if you (or someone else reading this) gets to this before we do.
I can confirm this is breaking 2 tests on Kohana. Kohana_CookieTest::test_set
and Kohana_CookieTest::test_get
Interestingly enough, if you just do this:
<?php
var_dump(headers_sent());
... without using PHPUnit, php5 also says false.
Two repros without PHPUnit:
<?php
echo "Foo\n";
var_dump(headers_sent()); // there's already been output
<?php
var_dump(headers_sent()); // false
var_dump(headers_sent()); //true
Fix up for review internally (FB: D1325097)