#26206 [Opn]: argv and argc not defined
| From: | danielc at analysisandsolutions dot com | Date: | Sun, 18 Jan 2004 00:44:43 +0000 |
| Subject: | #26206 [Opn]: argv and argc not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53503@lists.php.net to get a copy of this message | ||
ID: 26206
User updated by: danielc at analysisandsolutions dot com
Reported By: danielc at analysisandsolutions dot com
Status: Open
Bug Type: CGI related
Operating System: Windows 2000
PHP Version: 5CVS-2004-01-08
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2004-01-07 21:38:51] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Please try the latest snapshot.
------------------------------------------------------------------------
[2003-12-01 13:57:39] danielc at analysisandsolutions dot com
Everything worked fine until I switched from
php5-win32-200310010230.zip to php5-win32-200311040330.zip
I will track down exactly which snapshot in this time period started
causing the problem. Then someone can examine the changes made in
order to isolate the problem.
Please inform me where I can find old snapshots to do this.
http://snaps.php.net/win32/ only has the most recent few.
------------------------------------------------------------------------
[2003-12-01 13:31:20] sniper@php.net
Well, I can't reproduce this with either CLI or CGI, using either
php.ini-dist or php.ini-recommended. So there's something wrong with
your system, not PHP.
------------------------------------------------------------------------
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