#47178 [Opn]: Missing gzip headers in gzencode() output
| From: | wharmby at uk dot ibm dot com | Date: | Wed, 21 Jan 2009 11:41:36 +0000 |
| Subject: | #47178 [Opn]: Missing gzip headers in gzencode() output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133106@lists.php.net to get a copy of this message | ||
ID: 47178
User updated by: wharmby at uk dot ibm dot com
Reported By: wharmby at uk dot ibm dot com
Status: Open
Bug Type: Zlib Related
Operating System: Windows XP
PHP Version: 6CVS-2009-01-21 (snap)
New Comment:
New tests dropped for gzencode dropped to php 5.2, 5.3 and 6.
ext/zlib/tests/gzencode_variation2
ext/zlib/tests/gzencode_variation2-win32
in PHP 6 both tagged with XFAIL sections referencing this defect
Previous Comments:
------------------------------------------------------------------------
[2009-01-21 10:27:36] wharmby at uk dot ibm dot com
Description:
------------
Missing gzip headers in output from gzencode() when FORCE_DEFLATE
option specified.
Problem persists for all values for $level argument.
Problem seen at PHP 6 level only.
I will be dropping some new PHPT shortly; the PHP 6 version will be
tagged with XFAIL section because of this defect.
Reproduce code:
---------------
<?php
var_dump(bin2hex(gzencode(b"Hello World", -1, FORCE_GZIP)));
var_dump(bin2hex(gzencode(b"Hello World", -1, FORCE_DEFLATE)));
?>
Expected result:
----------------
Based on output for same script from 5.2/5.3 I expect something like:
unicode(62)
"1f8b0800000000000003f348cdc9c95708cf2fca49010056b1174a0b000000"
unicode(58)
"1f8b0800000000000003789cf348cdc9c95708cf2fca490100180b041d"
Actual result:
--------------
unicode(62)
"1f8b080000000000000bf348cdc9c95708cf2fca49010056b1174a0b000000"
unicode(38) "789cf348cdc9c95708cf2fca490100180b041d"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47178&edit=1