#21536 [Opn->Bgs]: ob_get_length() is broken for ob_gzhandler and zlib.output_compression

From: Date: Thu, 09 Jan 2003 03:18:02 +0000
Subject: #21536 [Opn->Bgs]: ob_get_length() is broken for ob_gzhandler and zlib.output_compression
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29521@lists.php.net to get a copy of this message
ID: 21536 Updated by: iliaa@php.net Reported By: jim-bugs.php.net@jimdabell.com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: FreeBSD 4.7 PHP Version: 4.3.0 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php For performance reasons compression of the buffer (ob_gzhandler) is only done at the termination of the script once all the output has been collected. Previous Comments: ------------------------------------------------------------------------ [2003-01-08 20:49:51] jim-bugs.php.net@jimdabell.com When ob_gzhandler or zlib.output_compression is switched on, ob_get_length() should report the compressed length, however it reports the uncompressed length. I found an old bug - #12631 - that is identical to this, but it seems it was fixed a while ago, and then "unfixed". I cannot seem to work around it with strlen(ob_get_contents()). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21536&edit=1

« previous php.bugs (#29521) next »