#27556 [Opn->Fbk]: argc not working correctly
| From: | sniper@php.net | Date: | Sat, 13 Mar 2004 10:05:59 +0000 |
| Subject: | #27556 [Opn->Fbk]: argc not working correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56385@lists.php.net to get a copy of this message | ||
ID: 27556
Updated by: sniper@php.net
Reported By: stan at workflowinc dot com
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: Windows XP
PHP Version: 4CVS-2004-03-11 (dev)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-03-11 08:51:27] stan at workflowinc dot com
$_SERVER is populated (by the way argc => 1)
------------------------------------------------------------------------
[2004-03-11 08:39:48] iliaa@php.net
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] sniper@php.net
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