|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-29 06:25 UTC] govi74 at yahoo dot com
Description: ------------ Even I have exactly the same issue as discussed in Bug #36526, this does *not* happen in PHP 5.0.1, but this is a BUG in 5.1.2 I am using gzcompress the same issue, also the issue is the same for gzinflate/gzdeflate. The script is like this... $data=base64_encode(gzcompress(serialize($packeddata))); When send it over _REQUEST.. and trying to reverse it to get the $packeddata, I get the data error for gzcompress... $unpackeddata = unserialize(gzuncompress(base64_decode($_REQUEST["data"]))); I need a fix for this, as of now, I have moved back to 5.0.1 again... If urlencode needs to be used, why was it working fine in the earlier versions??? This is a BUG in the uncompress code.. please have a relook into this... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Test case.... page1.php:::: ------------------------------------------------- <?php $packeddata = array(y2data => 0,array(1,2,3),array(1,2,3)); $data=base64_encode(gzcompress(serialize($packeddata))); echo "<a href=\"page2.php?data=".$data."\">Call Page 2</a>"; ?> ------------------------------------------------- page2.php::::::: ------------------------------------------------- <?php if ($_REQUEST["data"]) { $unpackeddata =unserialize(gzuncompress(base64_decode($_REQUEST["data"]))); } print_r ($unpackeddata); ?> ------------------------------------------------ Hope this makes complete.. on clicking the page2 link from the page 1 gives this error... this happens only when we send array data.... Warning: gzuncompress() [function.gzuncompress]: data error in D:\WebHome\home\testcase\page2.php on line 4