|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-31 16:55 UTC] alex at malexmedia dot net
[2009-08-31 17:36 UTC] alex at malexmedia dot net
[2009-08-31 20:14 UTC] jani@php.net
[2009-08-31 20:18 UTC] alex at malexmedia dot net
[2009-08-31 20:41 UTC] jani@php.net
[2009-08-31 21:04 UTC] alex at malexmedia dot net
[2009-11-13 22:36 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 09:00:01 2025 UTC |
Description: ------------ The ZLib "inflate" stream filter appears to be broken in PHP 5.2.9 and 5.2.10. When trying to inflate a GZip file, or even a stream previously compressed with zlib.deflate, zlib.inflate returns no output. Reproduce code: --------------- <?php //zlibtest.php //Usage: // $ echo TEST TEST TEST | gzip | php zlibtest.php $input = fopen("php://stdin", "rb"); stream_filter_append($input, 'zlib.inflate', STREAM_FILTER_READ); while(!feof($input) && ($buffer = fread($input, 8192)) !== FALSE) fwrite(STDOUT, $buffer); fclose($input); //Inexplicably, this will produce no output on STDOUT. //Even the example at http://us3.php.net/filters.compression behaves incorrectly. ?> Expected result: ---------------- I expect to see "TEST TEST TEST" on the command line. Actual result: -------------- The zlib.inflate filter is clearly not producing decompressed results on fread() operations. By my reckoning, this is a problem.