#34071 [NEW]: buffering is destroyed when using ob_gzhandler and ob_clean

From: Date: Wed, 10 Aug 2005 16:08:20 +0000
Subject: #34071 [NEW]: buffering is destroyed when using ob_gzhandler and ob_clean
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83319@lists.php.net to get a copy of this message
From: dennis at nocertainty dot com Operating system: Windows XP SP2 PHP version: 5CVS-2005-08-10 (dev) PHP Bug Type: Output Control Bug description: buffering is destroyed when using ob_gzhandler and ob_clean Description: ------------ When using ob_start('ob_gzhandler') and ob_clean() the output buffer is destroyed, and no ob_* function works anymore. It seems that PHP4 had this problem as well (http://bugs.php.net/bug.php?id=29125) Reproduce code: --------------- <?php ob_start('ob_gzhandler'); echo 'Should NOT be shown'; ob_clean(); echo 'Should be shown'; ?> Expected result: ---------------- "Should be shown" should've been printed, instead nothing is returned, and nothing displays anymore. -- Edit bug report at http://bugs.php.net/?id=34071&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34071&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34071&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34071&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34071&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34071&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34071&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34071&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34071&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34071&r=support Expected behavior: http://bugs.php.net/fix.php?id=34071&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34071&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34071&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34071&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34071&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34071&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34071&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34071&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34071&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34071&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34071&r=mysqlcfg

« previous php.bugs (#83319) next »