Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rekcuFniarB opened this issue May 15, 2019 · 0 comments

Comments

@rekcuFniarB
Copy link

rekcuFniarB commented May 15, 2019

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?

rekcuFniarB added a commit to rekcuFniarB/klein.php that referenced this issue Jan 12, 2020
…ue defined in ini.output_buffering.

It's better to flush buffer after sending response.
klein#399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant