Re: Output Buffering and zlib Compression Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux