Bug #75807 [NEW]: deflate_init fails with window bits set to 8

From: Date: Fri, 12 Jan 2018 02:09:41 +0000
Subject: Bug #75807 [NEW]: deflate_init fails with window bits set to 8
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213483@lists.php.net to get a copy of this message
From: matt at bonneau dot net Operating system: PHP version: master-Git-2018-01-12 (Git) Package: Zlib related Bug Type: Bug Bug description:deflate_init fails with window bits set to 8 Description: ------------ Newer versions of zlib reject an 8 bit window. Minimum value should be changed to 9 instead of 8. This failure was noticed with zlib 1.2.8. Test script: --------------- <?php deflate_init( ZLIB_ENCODING_RAW, [ 'window' => 8, ] ); Expected result: ---------------- Expect no output. Actual result: -------------- Warning: deflate_init(): failed allocating zlib.deflate context in test3.php on line 5 -- Edit bug report at https://bugs.php.net/bug.php?id=75807&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75807&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75807&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75807&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75807&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75807&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75807&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75807&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75807&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75807&r=support Expected behavior: https://bugs.php.net/fix.php?id=75807&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75807&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75807&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75807&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75807&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75807&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75807&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75807&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75807&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75807&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75807&r=mysqlcfg

« previous php.bugs (#213483) next »