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

Reply via email to