ID: 27556
User updated by: stan at workflowinc dot com
Reported By: stan at workflowinc dot com
-Status: Feedback
+Status: Open
Bug Type: CGI related
Operating System: Windows XP
PHP Version: 4CVS-2004-03-11 (dev)
New Comment:
$_SERVER is populated (by the way argc => 1)
Previous Comments:
------------------------------------------------------------------------
[2004-03-11 08:39:48] [EMAIL PROTECTED]
Is $_SERVER array populated (has any values) ?
------------------------------------------------------------------------
[2004-03-11 04:19:04] stan at workflowinc dot com
I simply ran test.php arg1 from the command line interface.
------------------------------------------------------------------------
[2004-03-10 19:44:12] [EMAIL PROTECTED]
Works fine for me. How exactly are you running the script?
And are you using CLI or CGI?
------------------------------------------------------------------------
[2004-03-10 19:02:36] stan at workflowinc dot com
Description:
------------
$_SERVER['argv'] is not detecting any arguments (register_argc_argv in
php.ini is turned on). I'm actually working with 4.3.5RC4-dev, it
wasn't on the list.
Reproduce code:
---------------
<?php
print_r($_SERVER['argv']);
exit;
?>
Expected result:
----------------
Array
(
[0] => test.php
[1] => arg1
)
Actual result:
--------------
Array
(
[0] => test.php
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27556&edit=1