|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-23 18:32 UTC] felipe@php.net
-PHP Version: 5.3.2
+PHP Version: 5.2.14, 5.3.x
[2010-04-23 18:32 UTC] felipe@php.net
[2010-04-24 18:38 UTC] felipe@php.net
-Package: Zlib Related
+Package: Documentation problem
[2010-05-09 22:29 UTC] markskilbeck@php.net
-Status: Open
+Status: Bogus
[2010-05-09 22:29 UTC] markskilbeck@php.net
[2010-05-10 10:52 UTC] marcus at synchromedia dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
Description: ------------ gzinflate is supposed to return false if it tries to inflate something that's not valid deflated data. It does this on PHP 5.2, but returns an empty string in 5.3. This is either a docs problem or a BC break between 5.2 and 5.3. I can't find anything in bugs, docs, release notes or the 5.2 to 5.3 upgrade guide about this. Test script: --------------- <?php $a = gzdeflate('abc'); $b = gzinflate($a); var_dump($b); $c = gzinflate('abc'); var_dump($c); ?> Expected result: ---------------- (I get this under PHP 5.2.4 on linux) string(3) "abc" PHP Warning: gzinflate(): buffer error in test.php on line 5 bool(false) Actual result: -------------- (I get this from PHP 5.3.2 built from MacPorts on OS X) string(3) "abc" string(0) ""