svn: /phpdoc/en/trunk/ appendices/ini.core.xml language/predefined/variables/httprawpostdata.xml language-snippets.ent

From: Date: Thu, 28 Aug 2014 04:37:51 +0000
Subject: svn: /phpdoc/en/trunk/ appendices/ini.core.xml language/predefined/variables/httprawpostdata.xml language-snippets.ent
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12741@lists.php.net to get a copy of this message
aharvey Thu, 28 Aug 2014 04:37:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334634 Log: Note that $HTTP_RAW_POST_DATA is deprecated in PHP 5.6. Changed paths: U phpdoc/en/trunk/appendices/ini.core.xml U phpdoc/en/trunk/language/predefined/variables/httprawpostdata.xml U phpdoc/en/trunk/language-snippets.ent Modified: phpdoc/en/trunk/appendices/ini.core.xml =================================================================== --- phpdoc/en/trunk/appendices/ini.core.xml 2014-08-28 04:27:35 UTC (rev 334633) +++ phpdoc/en/trunk/appendices/ini.core.xml 2014-08-28 04:37:51 UTC (rev 334634) @@ -1198,18 +1198,28 @@ <varlistentry xml:id="ini.always-populate-raw-post-data"> <term> <parameter>always_populate_raw_post_data</parameter> - <type>boolean</type> + <type>mixed</type> </term> <listitem> <para> - Always populate the <varname>$HTTP_RAW_POST_DATA</varname> containing - the raw POST data. Otherwise, the variable is populated only with - unrecognized MIME type of the data. However, the preferred method for - accessing the raw POST data is <link - linkend="wrappers.php">php://input</link>. - <varname>$HTTP_RAW_POST_DATA</varname> is not available with - <literal>enctype="multipart/form-data"</literal>. + If set to &true;, PHP will always populate the + <varname>$HTTP_RAW_POST_DATA</varname> containing the raw POST data. + Otherwise, the variable is populated only when the MIME type of the + data is unrecognised. </para> + <para> + The preferred method for accessing raw POST data is + <link linkend="wrappers.php">php://input</link>, and + <varname>$HTTP_RAW_POST_DATA</varname> is deprecated in PHP 5.6.0 + onwards. Setting <parameter>always_populate_raw_post_data</parameter> + to <literal>-1</literal> will opt into the new behaviour that will be + implemented in a future version of PHP, in which + <varname>$HTTP_RAW_POST_DATA</varname> is never defined. + </para> + <para> + Regardless of the setting, <varname>$HTTP_RAW_POST_DATA</varname> is + not available with <literal>enctype="multipart/form-data"</literal>. + </para> </listitem> </varlistentry> Modified: phpdoc/en/trunk/language/predefined/variables/httprawpostdata.xml =================================================================== --- phpdoc/en/trunk/language/predefined/variables/httprawpostdata.xml 2014-08-28 04:27:35 UTC (rev 334633) +++ phpdoc/en/trunk/language/predefined/variables/httprawpostdata.xml 2014-08-28 04:37:51 UTC (rev 334634) @@ -9,10 +9,16 @@ <refsect1 role="description"> &reftitle.description; + &warn.deprecated.feature-5-6-0; <para> <varname>$HTTP_RAW_POST_DATA</varname> contains the raw POST data. - See <link linkend="ini.always-populate-raw-post-data">always_populate_raw_post_data</link> + See <link linkend="ini.always-populate-raw-post-data">always_populate_raw_post_data</link>. </para> + <para> + In general, + <link linkend="wrappers.php.input"><literal>php://input</literal></link> + should be used instead of <varname>$HTTP_RAW_POST_DATA</varname>. + </para> </refsect1> </phpdoc:varentry> Modified: phpdoc/en/trunk/language-snippets.ent =================================================================== --- phpdoc/en/trunk/language-snippets.ent 2014-08-28 04:27:35 UTC (rev 334633) +++ phpdoc/en/trunk/language-snippets.ent 2014-08-28 04:37:51 UTC (rev 334634) @@ -194,6 +194,11 @@ <emphasis>DEPRECATED</emphasis> as of PHP 5.5.0. Relying on this feature is highly discouraged.</simpara></warning>'> +<!ENTITY warn.deprecated.feature-5-6-0 '<warning +xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been +<emphasis>DEPRECATED</emphasis> as of PHP 5.6.0. Relying on this feature +is highly discouraged.</simpara></warning>'> + <!ENTITY removed.php.future 'This deprecated feature <emphasis xmlns="http://docbook.org/ns/docbook">will</emphasis> certainly be <emphasis xmlns="http://docbook.org/ns/docbook">removed</emphasis> in the future.'>

« previous php.doc.cvs (#12741) next »