From: frode dot langvik at exense dot com
Operating system: Windows XP
PHP version: 5.2.6
PHP Bug Type: Strings related
Bug description: Handling plus sign in an url failed
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 bug report at http://bugs.php.net/?id=45149&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45149&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45149&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45149&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45149&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45149&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45149&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45149&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45149&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45149&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45149&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45149&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45149&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45149&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45149&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45149&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45149&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45149&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45149&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45149&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45149&r=mysqlcfg