ID: 45149 Comment by: phpbugs at samrowe dot com Reported By: frode dot langvik at exense dot com Status: No Feedback Bug Type: Strings related Operating System: * PHP Version: 5.2.6 New Comment:
I'm seeing this behavior on RHEL5's PHP-5.1.6-20.el5_2.1 when trying to use JSON data-structures containing strings that contain '+'. Previous Comments: ------------------------------------------------------------------------ [2008-11-03 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2008-10-26 23:12:42] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2008-06-02 14:19:06] frode dot langvik at exense dot com Description: ------------ When sending parameters in an url, the way of handling plus signs have changed. In PHP 4.3.9 everything worked fine, but after upgrading to version 5.2.6 it fails. In the test case will function base64_encode() generate a plus sign in both php version 4.3.9 and 5.2.5, but in version 5.2.5 it seems that the url is broken and base64_decode() got wrong value to work with. The test case includes some norwegian characters, but I have also discovered it when using other characters. Reproduce code: --------------- <?php if ($_GET['args']) { echo 'Result: '.unserialize(base64_decode($_GET['args'])); } echo '<br><a href="encode.php?args='.base64_encode(serialize('æøå')).'">Test link</a>'; ?> Expected result: ---------------- Result: æøå Actual result: -------------- Result: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45149&edit=1
