Skip to content

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

@rekcuFniarB

Description

@rekcuFniarB

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions