ID: 36903 Updated by: [EMAIL PROTECTED] Reported By: govi74 at yahoo dot com -Status: Open +Status: Bogus Bug Type: Zlib Related Operating System: Windows PHP Version: 5.1.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php http://php.net/urlencode Previous Comments: ------------------------------------------------------------------------ [2006-03-31 06:57:24] govi74 at yahoo dot com 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 ------------------------------------------------------------------------ [2006-03-29 11:42:03] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2006-03-29 06:25:04] 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... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36903&edit=1
