Closed SergeyTsalkov closed 8 years ago
Which version of Slim are you using?
I'm using Slim 2.6.2, the latest! I guess this is changing with Slim 3 coming out soon?
On Sun, Sep 27, 2015 at 2:47 AM, John Porter notifications@github.com wrote:
Which version of Slim are you using?
— Reply to this email directly or view it on GitHub https://github.com/slimphp/Slim/issues/1502#issuecomment-143533507.
I just wanted to verify it so we know :) I'm not sure yet on how to resolve the issue, but we know where to be looking now.
Yes - you can turn off output buffering on Slim 3, Set the outputBuffering
setting to false
.
Can you do the same on Slim2 though?
You can flush the buffer.... yourself... http://php.net/manual/en/function.ob-flush.php ... It's a bit of a pain...
As Slim 3 is released, we are only fixing Security issues on Slim 2.
My site needs a page that returns very large amounts of text, on the order of several hundred MB. Slim's output buffering makes this problematic: not only does it use lots of memory, but nothing shows up on the user's screen until the whole page is done building.
I'd really like to disable output buffering so my controller can send the page in pieces as it's built. Is that possible?