php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36903 Bug #36526 is not a bogus bug
Submitted: 2006-03-29 06:25 UTC Modified: 2006-03-31 09:28 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: govi74 at yahoo dot com Assigned:
Status: Not a bug Package: Zlib related
PHP Version: 5.1.2 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: govi74 at yahoo dot com
New email:
PHP Version: OS:

 

 [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...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-29 11:42 UTC] tony2001@php.net
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-31 06:57 UTC] 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-31 09:28 UTC] mike@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC