|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-11-16 16:20 UTC] jani@php.net
  [2009-11-16 19:58 UTC] ppass at hotmail dot fr
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
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.