From:
Operating system: Windows
PHP version: 5.4.0
Package: Zlib related
Bug Type: Bug
Bug description:A particular string fails to decompress
Description:
------------
We use gzdeflate to compress search parameters. When we recently upgraded
from 5.3.8 to 5.4, a slew of error messages appeared. See the test script
below. We've tried to minimize it, but any changes do not cause the error
to trigger.
Changing the variable name "region_id" to "egion_id" results in 90.
Changing the variable name "region_id" to "tegion_id" causes the same
error.
Changing the variable name "discipline" to "isciplined" results in 92.
Changing the value assigned to region_id from 1 to 2 results in 92.
Changing the value assigned to region_id from 1 to 4 results in an error.
Test script:
---------------
$array = array(
'region_id' => 1,
'discipline' => 23,
'degrees' => array(),
'country_id' => 27
);
$serialized = serialize($array);
$deflated = gzdeflate($serialized, 9);
$inflated = gzinflate($deflated);
echo strlen($inflated);
Expected result:
----------------
Expected: 92
Actual result:
--------------
Warning: gzinflate(): data error in D:\Web\Projects\Bench\index.php on line
13
0
--
Edit bug report at https://bugs.php.net/bug.php?id=61287&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61287&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61287&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61287&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61287&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61287&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61287&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61287&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61287&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61287&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61287&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61287&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61287&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61287&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61287&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61287&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61287&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61287&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61287&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61287&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61287&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61287&r=mysqlcfg