#49411 [Opn->Csd]: zlib.inflate stream filter is broken
| From: | vrana@php.net | Date: | Fri, 13 Nov 2009 22:36:16 +0000 |
| Subject: | #49411 [Opn->Csd]: zlib.inflate stream filter is broken | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3150@lists.php.net to get a copy of this message | ||
ID: 49411
Updated by: vrana@php.net
Reported By: alex at malexmedia dot net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: *
PHP Version: 5.2.11RC2
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Params are already set in the example.
Previous Comments:
------------------------------------------------------------------------
[2009-08-31 21:04:28] alex at malexmedia dot net
I see that. Hmm...
I assumed that my example would work because the bzip2.decompress
filter appears to be compatible with the output of the bzip2 command
line utility.
So, what would be the "correct" way to perform decompression on an
already-opened file stream with GZip data coming in? Any thoughts?
------------------------------------------------------------------------
[2009-08-31 20:41:47] jani@php.net
Well, I have a fix for the bug I found but it's actually not related to
your problem which is just invalid code. As mentioned on the manual
page
you pointed to:
"Note: Compression filters do not generate headers and trailers used by
command line utilities such as gzip. They only compress and decompress
the payload portions of compressed data streams."
Hence, your example can not work. This is just documentation issue,
reclassifying. The invalid example code needs to be fixed. (to use -15
instead of 15 for window parameter :)
------------------------------------------------------------------------
[2009-08-31 20:18:13] alex at malexmedia dot net
Let me know when you've got something ready to test, and I'll do so
asap. :)
------------------------------------------------------------------------
[2009-08-31 20:14:08] jani@php.net
The examples don't work because someone (Sara) changed the window
parameter to default to -15 (to widen the range according to the commit
message) so in the example the deflate uses different params than the
inflate.
There's also a real bug in this same code. GOTO is truly evil..
------------------------------------------------------------------------
[2009-08-31 17:36:35] alex at malexmedia dot net
I just built the latest snapshot on Linux and confirmed: this bug is
still present on both Linux and Windows.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/49411
--
Edit this bug report at http://bugs.php.net/?id=49411&edit=1