$argv and $argc registration

From: Date: Thu, 19 Jul 2001 07:49:12 +0000
Subject: $argv and $argc registration
Groups: php.dev 
Request: Send a blank email to php-dev+get-60261@lists.php.net to get a copy of this message
I am not subscribed to this list, so please CC: or reply directly to me. Thanks! I may be doing something wrong.. I'm not real sure. Neither $argc or $argv seem to be registered with the cgi version of php 4.0.6 and up. The test script: <?php ini_set ('register_globals', 1); ini_set ('register_argc_argv', 1); var_dump ($argc); var_dump ($argv); ?> exits with the following: Warning: Undefined variable: argc in ./foo.php on line 5 NULL Warning: Undefined variable: argv in ./foo.php on line 6 NULL regardless of any command line options passed to it. Older scripts that work fine with php 4.0.5 fail with 4.0.6, with identical build options and php.ini settings. The above script also behaves as expected on php 4.0.5. Any ideas? Am I missing something? Does this work for other people? -- Jeremy

« previous php.dev (#60261) next »