|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-10-19 11:05 UTC] tho at e-dict dot net
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 !
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
Not CLI. CLI doesn't work that way anyway. CGI does this: $ cat test.php #!/home/mfischer/php4/bin/php-cgi -f <? print "V1 = $V1\n"; print "V2 = $V2\n"; var_dump($HTTP_GET_VARS); ?> $ ./test.php "V1=val1&V2=val2" V1 = V2 = array(2) { ["_/test_php_V1"]=> string(4) "val1" ["V2"]=> string(4) "val2" } Admitted, looks wierd. PHP3 compatibility is of no concern here, anyway. If no one tells me better I'ld expect V1 beingin HTTP_GET_VARS.tho@dev0:~/test> php -i|grep "PHP Version" PHP Version => 4.3.0 tho@dev0:~/test> ./test.php "V1=val1&V2=val2" V1 = V2 = val2 array(2) { ["_/test_php_V1"]=> string(4) "val1" ["V2"]=> string(4) "val2" } Seems not to be fixed in 4.3.0. Please reopen bug.