Mention that no directives affect $argc/$argv in CLI, not even register_argc_argv

See also features.commandline


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164360 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2004-07-26 17:52:31 +00:00
parent bd12b7c7e0
commit 0551ef414a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.26 $ -->
<!-- $Revision: 1.27 $ -->
<appendix id="migration5">
<title>Migrating from PHP 4 to PHP 5</title>
@ -193,8 +193,15 @@ class b implements c {
box" appears on the screen). This behavior is similar to php-gtk.
</para>
<para>
In PHP 5, the CLI version will always populate the global $argv and $argc
variables.
In PHP 5, the CLI version will always populate the global
<varname>$argv</varname> and <varname>$argc</varname> variables regardless
of any &php.ini; directive setting. Even having
<link linkend="ini.register-argc-argv">register_argc_argv</link> set to
<literal>off</literal> will have no affect in CLI.
</para>
<para>
See also the <link linkend="features.commandline">commandline
reference</link>.
</para>
</section>