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:

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


Previous Comments:
------------------------------------------------------------------------

[2004-01-08 13:14:25] danielc at analysisandsolutions dot com

No dice using php5-win32-200401081130

------------------------------------------------------------------------

[2004-01-07 21:38:51] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.


------------------------------------------------------------------------

[2003-12-01 12:04:35] danielc at analysisandsolutions dot com

100% certain.

New PHP installs on this system are by moving the entirety of the old
install aside, extracting the contents of a new snapshot .zip file then
copying the exact files/structure over to the php directory.  The
system finds the DLLS via the %path%, in which
"C:\PROGRA~1\Php;C:\PROGRA~1\Php\dlls;" are the first two entries.

The PHP DLL's have never been copied to any other location on this
computer.

------------------------------------------------------------------------

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

Reply via email to