Headers defined with $response->header() not sent if buffer length exceedes value defined in ini.output_buffering (4096 by default).
Solution may be setting output_buffering to "On" (unlimited) but it's not always good idea.
I found out that in this case output without headers starts at Klein.php:695 and then it tries to send headers at 706 but fails due to output already happened (headers_sent() == true).
Shouldn't $this->response->send() be called before 694?
Headers defined with
$response->header()
not sent if buffer length exceedes value defined inini.output_buffering
(4096 by default).Solution may be setting
output_buffering
to"On"
(unlimited) but it's not always good idea.I found out that in this case output without headers starts at Klein.php:695 and then it tries to send headers at 706 but fails due to output already happened (
headers_sent() == true
).Shouldn't
$this->response->send()
be called before 694?