From: ppass at hotmail dot fr Operating system: Windows PHP version: 5.2.11 PHP Bug Type: URL related Bug description: $SERVER['argv'] not working as expected
Description:
------------
I sometimes use URLs with several arguments. The value of some of
arguments are urlencoded, so a space will be translated to a + sign.
The problem is that $SERVER['argv'] seems to interpret this + sign by as
a separator.
Reproduce code:
---------------
File: argv_behaviour.php
<?php
Echo "<br/>List of arguments: (".$_SERVER['argv'][0].")";
?>
Expected result:
----------------
When launching argv_behaviour.php?arg1=aa&arg2=b+c&arg3=dd
I expect to see
List of arguments: (arg1=aa&arg2=b+c&arg3=dd)
Actual result:
--------------
but I get
List of arguments: (arg1=aa&arg2=b)
I get the wrong number of arguments and truncated value for some of them.
--
Edit bug report at http://bugs.php.net/?id=50191&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50191&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50191&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50191&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50191&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50191&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50191&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50191&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50191&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50191&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50191&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50191&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50191&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50191&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50191&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50191&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50191&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50191&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50191&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50191&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50191&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50191&r=mysqlcfg
