Bug #13757: Commandline: querystring parser buggy
| From: | rl at e-dict dot net | Date: | Fri, 19 Oct 2001 15:05:39 +0000 |
| Subject: | Bug #13757: Commandline: querystring parser buggy | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68412@lists.php.net to get a copy of this message | ||
From: rl@e-dict.net
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Scripting Engine problem
Bug description: Commandline: querystring parser buggy
executable script /tmp/bug:
>>>
# ! /usr/local/bin/php -f
<?php
print "V1 = $V1\n";
print "V2 = $V2\n";
var_dump($HTTP_GET_VARS);
?>
<<<
command:
$ /tmp/bug "V1=val1&V2=val2"
output:
>>>
V1 =
V2 = val2
array(2) {
["/tmp/bug_V1"]=>
string(4) "val1"
["V2"]=>
string(4) "val2"
}
<<<
problem:
... see: the first array index is parsed to "/tmp/bug_V1".
downwardcompatibility to PHP3 not given !
--
Edit bug report at: http://bugs.php.net/?id=13757&edit=1