klein/klein.php

Headers not sent if buffer length exceedes value defined in ini.output_buffering

Opened this issue · 0 comments

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?