ID:               26206
 Updated by:       [EMAIL PROTECTED]
 Reported By:      danielc at analysisandsolutions dot com
-Status:           Open
+Status:           Duplicate
 Bug Type:         CGI related
 Operating System: Windows 2000
 PHP Version:      5CVS-2004-01-08
 New Comment:

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.


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

[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

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

[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.

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

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