From: wharmby at uk dot ibm dot com Operating system: Windows XP PHP version: 6CVS-2009-01-21 (snap) PHP Bug Type: Zlib Related Bug description: Missing gzip headers in gzencode() output
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 bug report at http://bugs.php.net/?id=47178&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47178&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47178&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47178&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47178&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47178&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47178&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47178&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47178&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47178&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47178&r=support Expected behavior: http://bugs.php.net/fix.php?id=47178&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47178&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47178&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47178&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47178&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47178&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47178&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47178&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47178&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47178&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47178&r=mysqlcfg