svn: /phpdoc/en/trunk/ appendices/ini.core.xml reference/network/functions/header.xml
| From: | Pieter Hordijk | Date: | Wed, 22 May 2013 22:30:38 +0000 |
| Subject: | svn: /phpdoc/en/trunk/ appendices/ini.core.xml reference/network/functions/header.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11346@lists.php.net to get a copy of this message | ||
peehaa Wed, 22 May 2013 22:30:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330338
Log:
Think about the children errr rfc's
Changed paths:
U phpdoc/en/trunk/appendices/ini.core.xml
U phpdoc/en/trunk/reference/network/functions/header.xml
Modified: phpdoc/en/trunk/appendices/ini.core.xml
===================================================================
--- phpdoc/en/trunk/appendices/ini.core.xml 2013-05-22 03:13:12 UTC (rev 330337)
+++ phpdoc/en/trunk/appendices/ini.core.xml 2013-05-22 22:30:38 UTC (rev 330338)
@@ -1606,13 +1606,22 @@
<type>int</type>
</term>
<listitem>
- <para>
+ <para>
Tells PHP what type of headers to use when sending HTTP response
- code. If it's set 0, PHP sends a Status: header that is supported
- by Apache and other web servers. When this option is set to 1, PHP
- will send <link xlink:href="&url.rfc;2616">RFC 2616</link>
compliant
- headers. Leave it set to 0 unless you know what you're doing.
+ code. If it's set to 0, PHP sends a <link
xlink:href="&url.rfc;3875">RFC 3875</link>
+ "Status:" header that is supported by Apache and other web servers. When this
option
+ is set to 1, PHP will send <link xlink:href="&url.rfc;2616">RFC
2616</link> compliant
+ headers.
</para>
+ <para>
+ If this option is enabled, and you are running PHP in a CGI environment (e.g. PHP-FPM)
+ you should not use standard RFC 2616 style HTTP status response headers, you should
+ instead use their RFC 3875 equivalent e.g. instead of header("HTTP/1.0 404 Not
found");
+ you should use header("Status: 404 Not Found");
+ </para>
+ <para>
+ Leave it set to 0 unless you know what you're doing.
+ </para>
</listitem>
</varlistentry>
Modified: phpdoc/en/trunk/reference/network/functions/header.xml
===================================================================
--- phpdoc/en/trunk/reference/network/functions/header.xml 2013-05-22 03:13:12 UTC (rev 330337)
+++ phpdoc/en/trunk/reference/network/functions/header.xml 2013-05-22 22:30:38 UTC (rev 330338)
@@ -73,18 +73,6 @@
</informalexample>
</para>
<para>
- For FastCGI you must use the following for a 404 response:
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-header("Status: 404 Not Found");
-?>
-]]>
- </programlisting>
- </informalexample>
- </para>
- <para>
The second special case is the "Location:" header. Not only does
it send this header back to the browser, but it also returns a
<literal>REDIRECT</literal> (302) status code to the browser