Fixed PHP bug #51075 (Default value for cgi.fix_pathinfo in docu is wrong) + a little cleaning

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295458 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-02-24 09:28:48 +00:00
parent 87423caa67
commit 7a525a0f97

View file

@ -4992,11 +4992,12 @@ include_path=".;c:\php\includes"
</term>
<listitem>
<para>
Controls whether CGI PHP checks for line starting with #! (shebang)
at the top of the running script. This line might be needed if the
script support running both as stand-alone script and via PHP CGI.
PHP in CGI mode skips this line and ignores its content if this
directive is turned on.
Controls whether <literal>CGI</literal> PHP checks for line starting
with <literal>#!</literal> (shebang) at the top of the running script.
This line might be needed if the script support running both as
stand-alone script and via PHP <acronym>CGI</acronym>. PHP in
<acronym>CGI</acronym> mode skips this line and ignores its content if
this directive is turned on.
</para>
</listitem>
</varlistentry>
@ -5008,14 +5009,18 @@ include_path=".;c:\php\includes"
</term>
<listitem>
<para>
Provides <emphasis>real</emphasis> PATH_INFO/PATH_TRANSLATED
support for CGI. PHP's previous behaviour was to set
PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok what PATH_INFO
is. For more information on PATH_INFO, see the cgi specs. Setting
this to 1 will cause PHP CGI to fix it's paths to conform to the
spec. A setting of zero causes PHP to behave as before. Default
is zero. You should fix your scripts to use SCRIPT_FILENAME rather
than PATH_TRANSLATED.
Provides <emphasis>real</emphasis> <literal>PATH_INFO</literal>/
<literal>PATH_TRANSLATED</literal> support for <acronym>CGI</acronym>.
PHP's previous behaviour was to set <literal>PATH_TRANSLATED</literal>
to <literal>SCRIPT_FILENAME</literal>, and to not grok what <literal>
PATH_INFO</literal>is. For more information on
<literal>PATH_INFO</literal>, see the <acronym>CGI</acronym> specs.
Setting this to <literal>1</literal> will cause PHP
<acronym>CGI</acronym> to fix its paths to conform to the spec. A
setting of zero causes PHP to behave as before. It is turned on by
default. You should fix your scripts to use
<literal>SCRIPT_FILENAME</literal> rather than
<literal>PATH_TRANSLATED</literal>.
</para>
</listitem>
</varlistentry>
@ -5028,8 +5033,9 @@ include_path=".;c:\php\includes"
<listitem>
<para>
cgi.force_redirect is necessary to provide security running PHP as a
CGI under most web servers. Left undefined, PHP turns this on by
default. You can turn it off <emphasis>at your own risk</emphasis>.
<acronym>CGI</acronym> under most web servers. Left undefined, PHP
turns this on by default. You can turn it off <emphasis>at your own
risk</emphasis>.
</para>
<note>
<para>