php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13758 Commandline: querystring parser buggy
Submitted: 2001-10-19 11:06 UTC Modified: 2001-10-19 11:10 UTC
From: rl at e-dict dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-10-19 11:06 UTC] rl at e-dict dot net
executable script /tmp/bug:
>>>
# ! /usr/local/bin/php -f
<?php 
print "V1 = $V1n";
print "V2 = $V2n";
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 !

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-19 11:10 UTC] sander@php.net
Submitted 3 times...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 01:01:30 2024 UTC