On Sat, Jan 17, 2004 at 03:08:32PM -0500, Greg Beaver wrote:
>
> $_SERVER should be populated with argc and argv if variables_order
> includes "S".
Unfortunately, this isn't working on my system with the
php5-win32-200401161930 snapshot. Perhaps I'm misunderstanding something?
My variables_order has "GPCS" and register_argc_argv is "On" but
$_SERVER['argv'] isn't there.
Test script:
<?php
echo "\$_SERVER\n";
var_dump($_SERVER);
echo "\n\$_SERVER['argv']\n";
var_dump($_SERVER['argv']);
echo "\n\$argv\n";
var_dump($argv);
echo 'register_argc_argv = ' . ini_get('register_argc_argv') . "\n";
echo 'variables_order = ' . ini_get('variables_order') . "\n";
?>
Regardless of the register_argc_argv and variables_order settings in the
php.ini file, the following happens:
$_SERVER is filled with loads of stuff
$_SERVER['argv'] is not set
$argv is set
register_argc_argv says 1
The right .ini file is being read, because changing variables_order shows
up in the ini_get() output.
So, what am I forgetting?
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php