From: danielc at analysisandsolutions dot com
Operating system: Windows 2000
PHP version: 5CVS-2003-11-11 (dev)
PHP Bug Type: Unknown/Other Function
Bug description: argv and argc not defined
Description:
------------
$_SERVER['argv'] and $_SERVER['argc'] aren't created.
php.ini and phpinfo() show register_argc_argv as being On.
Behavior is the same via CLI or CGI binaries.
Substituted a known good php.ini file to see ensure the file was getting
parsed. Same results.
Everything worked fine under 500b2-dev--php5-win32-200310010230
Problem began when upgraded to 500b2-dev--php5-win32-200311040330
Persists in the current CVS snapshot
500b3-dev--php5-win32-200311111530
Reproduce code:
---------------
#! c:/progra~1/php/cli/php
<?php
print_r($_SERVER['argv']);
?>
now execute test script...
./t.php fjiao
Expected result:
----------------
Array
(
[0] => ./t.php
[1] => fjiao
)
Actual result:
--------------
Notice: Undefined index: argv in d:\t.php on line 3
--
Edit bug report at http://bugs.php.net/?id=26206&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26206&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26206&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26206&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26206&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26206&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26206&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26206&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26206&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26206&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26206&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26206&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26206&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26206&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26206&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26206&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26206&r=float