Re: argv and argc on cliphp

From: Date: Fri, 03 Oct 2003 00:07:27 +0000
Subject: Re: argv and argc on cliphp
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4658@lists.php.net to get a copy of this message
Andrei and I discussed this change and at the conceptual level at least $_SERVER should be populated with argc and argv if variables_order includes "S". If you have specifically configured your system to not create $_SERVER, then of course it shouldn't be there. The change was to always make argc and argv available in the CLI version regardless of the variables_order setting. As in, the CLI version will now always populate the global $argc and $argv variables. So, if you have "S" in your variables_order and you are not seeing $_SERVER['argc'] and $_SERVER['argv'] populated then something got messed up along the way. It should definitely be there. -Rasmus On Fri, 3 Oct 2003, Alan Knowles wrote: > Stanislav - looks like andrei changed it - you better cc his private > mail as I dont think he reads internals often. > > Regards > Alan > > Stanislav Malyshev wrote: > > >Is there any reason that PHP5 CLI does not register argc and argv in > >_SERVER like PHP4 does? There are a number of scripts that depend on it > >and just adding one more unnecessary incompatibility between PHP4 and > >PHP5. What is the problem with argv/argc being in _SERVER? > > > > > > > >

« previous php.internals (#4658) next »