Re: Output Buffering and zlib Compression Issue
| From: | Chris | Date: | Sat, 04 Aug 2007 01:24:47 +0000 |
| Subject: | Re: Output Buffering and zlib Compression Issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260169@lists.php.net to get a copy of this message | ||
I put set output_buffering off in the htaccess so i could have absolute control in my code.
It doesn't matter what I was trying to do, actually. I created a very basic test case to illustrate the issue.
And the problem won't happen if you don't bother using the htaccess code. Why would I have included it if it weren't necessary to illustrate my issue?
Anyway, it is all irrelevant now as I found the solution in a pear package.
Simply replace:
while (ob_get_level() > 0) {
ob_end_clean();
}
With:
if (ob_get_level()) {
while (@ob_end_clean());
}
And the issue is solved.
Chris