ID: 26206
Updated by: zeev@php.net
Reported By: danielc at analysisandsolutions dot com
-Status: Bogus
+Status: Closed
Bug Type: CGI related
Operating System: Windows 2000
PHP Version: 5CVS-2004-01-08
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-02-16 23:48:35] sniper@php.net
duplicate status is deprecated.
------------------------------------------------------------------------
[2004-01-27 13:19:07] danielc@php.net
In the current thread, Jani pointed out that this is related to bug
25724 -- http://bugs.php.net/bug.php?id=25724 --
which
says that when register_long_arrays is off, the superglobals are
broken.
So, until that bug is fixed, turn register_long_arrays = On in php.ini
to get $_SERVER['argv'] and $_SERVER['argc'] to work.
------------------------------------------------------------------------
[2004-01-17 19:44:43] danielc at analysisandsolutions dot com
Here's a link to the discussion on the interals list back in October
about these changes:
http://marc.theaimsgroup.com/?t=106509307300006&r=1&w=2
This is a link to the current discussion regarding the situation and
how either I'm misunderstanding things or things may not be working as
expected:
http://marc.theaimsgroup.com/?t=107436583100001&r=1&w=2
------------------------------------------------------------------------
[2004-01-17 14:17:35] danielc at analysisandsolutions dot com
Greg just posted on the internals list that he too noticed that
$_SERVER['argv'] and $_SERVER['argc'] aren't set.
He also made a very interesting observation that $argv and $argc ARE
set.
EXAMPLE SCRIPT argvtest.php:
<?php
var_dump($argv);
var_dump($_SERVER['argv']);
?>
INVOCATION:
C:\PROGRA~1\php>php argvtest.php 1 2
OUTPUT:
array(3) {
[0]=>
string(12) "argvtest.php"
[1]=>
string(1) "1"
[2]=>
string(1) "2"
}
Notice: Undefined index: argv in C:\PROGRA~1\php\argvtest.php on line
3
NULL
------------------------------------------------------------------------
[2004-01-08 13:14:25] danielc at analysisandsolutions dot com
No dice using php5-win32-200401081130
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/26206--
Edit this bug report at http://bugs.php.net/?id=26206&edit=1