Output Buffering and zlib Compression Issue
| From: | Chris | Date: | Fri, 03 Aug 2007 23:17:58 +0000 |
| Subject: | Output Buffering and zlib Compression Issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260166@lists.php.net to get a copy of this message | ||
When I run the following code (PHP 5.2.2, 5.2.3) via Apache (with an htaccess file), I get this error:
Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer zlib output compression. in ...
Can anyone explain what's going on?
I'm assuming it isn't a bug and I've read the documentation. Did I miss something?
htaccess file code:
php_flag output_buffering Off
php_flag zlib.output_compression On
php_value zlib.output_compression_level "-1"
PHP Code:
<?php
error_reporting(E_ALL | E_NOTICE);
ini_set('display_errors', '1');
ob_start();
echo "You shouldn't see this.";
while (ob_get_level() > 0) {
ob_end_clean();} ob_start(); echo "You SHOULD see this."; ob_end_flush(); ?> Chris