|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 00:00:01 2025 UTC | 
First of all this is a bug in PHP/4.0RC1. I wrote a very simple php "script" to look at the command line args passed -- args.php. #!/usr/local/bin/php -q <?php echo "$argc\n"; for ($i = 0; $i < $argc ; $i++) { echo "$i {$argv[$i]}\n"; } ?> I then called : > ./args.php "http://foo.com/one?bar=++10&baz=100" 4 0 ./args.php 1 http://foo.com/one?bar= 2 3 10&baz=100 Notice that even though the arg is quoted, the +'s seem to split the single arg into 3.