ID:               13757
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Linux
-PHP Version:      CVS
+PHP Version:      4.2.x
 New Comment:

fixed in 4.3.0



Previous Comments:
------------------------------------------------------------------------

[2002-06-26 09:37:45] [EMAIL PROTECTED]

in 4.2.1 still not fixed

the result remains the same

php doesn't take notice of the first argument
but it is visible in $HTTP_GET_VARS

------------------------------------------------------------------------

[2002-06-06 06:03:52] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-06-06 05:41:40] [EMAIL PROTECTED]

Can you try the CLI in 4.2.x or from the latest CVS? This might have
been fixed.

------------------------------------------------------------------------

[2001-12-14 13:36:10] [EMAIL PROTECTED]

PHP 4.1.0 does this also...

------------------------------------------------------------------------

[2001-10-19 11:05:39] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=13757&edit=1

Reply via email to