#36526 [Bgs]: compressed data corruption when passed to another script via _REQUEST

From: Date: Mon, 08 May 2006 11:52:13 +0000
Subject: #36526 [Bgs]: compressed data corruption when passed to another script via _REQUEST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96809@lists.php.net to get a copy of this message
ID: 36526 User updated by: terry at kryogenic dot co dot uk Reported By: terry at kryogenic dot co dot uk Status: Bogus Bug Type: *Compression related Operating System: Debian PHP Version: 5.1.2 New Comment: Well? Previous Comments: ------------------------------------------------------------------------ [2006-02-25 17:38:12] terry at kryogenic dot co dot uk No, it doesn't work. Like I said I should have given more details into what I tried when I wrote the report, I tried urlencode with and without base64_encode. I also tried without compression and it worked which is why I clearly thought wrongly that it was a bug. I tested it by pointing the script to itself, urlencode worked but not base64_encode (which obviously clears up the fact I should have used urlencode anyway). Interestingly, I can decode the string and decompress it with no problem without sending the data to itself or another script. ------------------------------------------------------------------------ [2006-02-25 17:26:30] mike@php.net I don't get it. Does it work now or not? ------------------------------------------------------------------------ [2006-02-25 16:20:03] terry at kryogenic dot co dot uk Sorry if this seems like its not a bug but I have been through the relevant channels already. urlencode does not work either, I should have mentioned that here (sorry). There is a difference between the strings after a decode of any sort. It sure looked like a bug when I reported it. Sorry I wasted your time. ------------------------------------------------------------------------ [2006-02-25 16:09:10] mike@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Treat the base64 encoded string with urlencode() prior passing in a link. ------------------------------------------------------------------------ [2006-02-25 13:21:32] terry at kryogenic dot co dot uk $decStr = bzdecompress(base64_decode($_REQUEST['error'])); should be $decStr = bzdecompress(base64_decode($_REQUEST['object'])); in the example code. My bad :) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36526 -- Edit this bug report at http://bugs.php.net/?id=36526&edit=1

« previous php.bugs (#96809) next »