#33535 [Opn->Bgs]: $_SERVER['argv'] returns an unusefull array
ID: 33535
Updated by: tony2001@php.net
Reported By: cristian dot zuddas at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Linux
PHP Version: 4.3.11
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Because in command line arguments are passed in different way and
"a=1&b=2" syntax is used only in URLs.
See details here: http://www.php.net/manual/en/features.commandline.php
Previous Comments:
------------------------------------------------------------------------
[2005-07-01 16:17:42] cristian dot zuddas at gmail dot com
Description:
------------
The var. $_SERVER['argv'] returns an array with only ONE element, that
contains all the query string. I don't think is correct... why the var.
contains an array with only one string, and not directly a (less
expensive) string?
Reproduce code:
---------------
print_r($_SERVER['argv']);
Expected result:
----------------
string type: l=26&p=5&g=fsd
OR
Array
(
[0] => l=26
[1] => p=5
[2] => g=fsd
)
Actual result:
--------------
Array
(
[0] => l=26&p=5&g=fsd
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33535&edit=1
Thread (2 messages)