svn: /phpdoc/en/trunk/appendices/ migration54.xml
| From: | Nikita Popov | Date: | Wed, 29 Feb 2012 17:03:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/appendices/ migration54.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9722@lists.php.net to get a copy of this message | ||
nikic Wed, 29 Feb 2012 17:03:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323670
Log:
Reorder some stuff in the migration guide, so the more important things like magic quotes and call
time pass by ref are at the top.
Changed paths:
U phpdoc/en/trunk/appendices/migration54.xml
Modified: phpdoc/en/trunk/appendices/migration54.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration54.xml 2012-02-29 16:45:16 UTC (rev 323669)
+++ phpdoc/en/trunk/appendices/migration54.xml 2012-02-29 17:03:22 UTC (rev 323670)
@@ -70,15 +70,6 @@
<itemizedlist>
<listitem>
<simpara>
- The <link
linkend="control-structures.break"><literal>break</literal></link>
- and <link
linkend="control-structures.continue"><literal>continue</literal></link>
- statements don't accept variable arguments anymore, i.e. writing
- <literal>break 1 + foo() * $bar;</literal> is not possible. You can obviously
still use
- static arguments, like <literal>break 2;</literal>.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
<link linkend="features.safe-mode"><literal>Safe
mode</literal></link> is no
longer supported. Any applications that rely on safe mode may need
adjustements in terms of security.
@@ -86,25 +77,36 @@
</listitem>
<listitem>
<simpara>
- The Salsa10 and Salsa20 <link linkend="book.hash">hash algorithms</link>
have been removed.
+ <link linkend="security.magicquotes">Magic quotes</link> has been
removed. Applications relying
+ on this feature need to be updated to avoid security issues.
</simpara>
+ <simpara>
+ <function>get_magic_quotes_gpc</function> and
<function>get_magic_quotes_runtime</function>
+ now always return false. <function>set_magic_quotes_runtime</function> raises an
+ <constant>E_CORE_ERROR</constant>.
+ </simpara>
</listitem>
<listitem>
<simpara>
- In Date extension, setting the timezone with the TZ environment variable is no longer
supported.
- The extension will no longer guess the default timezone if none is set, instead it will always
- fall back to "UTC".
+ <link linkend="language.references.pass">Call-time pass by
reference</link> has been removed.
</simpara>
</listitem>
<listitem>
<simpara>
- <link linkend="security.magicquotes">Magic quotes</link> has been
removed. Applications relying
- on this feature need to be updated to avoid security issues.
+ The <link
linkend="control-structures.break"><literal>break</literal></link>
+ and <link
linkend="control-structures.continue"><literal>continue</literal></link>
+ statements don't accept variable arguments anymore, i.e. writing
+ <literal>break 1 + foo() * $bar;</literal> is not possible. You can obviously
still use
+ static arguments, like <literal>break 2;</literal>.
</simpara>
+ </listitem>
+ <listitem>
<simpara>
- <function>get_magic_quotes_gpc</function> and
<function>get_magic_quotes_runtime</function>
- now always return false. <function>set_magic_quotes_runtime</function> raises an
- <constant>E_CORE_ERROR</constant>.
+ In the <link linkend="book.datetime">date and time extension</link> the
timezone can no longer be
+ set using the TZ environment variable. Instead you have to specify a timezone using the
+ <link linkend="ini.date.timezone">date.timezone</link> ini option or the
<function>date_default_timezone_set</function>
+ function. PHP will no longer try to guess the used timezone and instead fall back to
"UTC" and issue
+ a warning.
</simpara>
</listitem>
<listitem>
@@ -119,14 +121,14 @@
</listitem>
<listitem>
<simpara>
- Turning &null;, &false; or an empty string into an object by adding a property
- will now emit a warning instead of an <constant>E_STRICT</constant> error.
+ Converting an array to string will now cause an <constant>E_NOTICE</constant>. The
result of
+ the cast will still be <literal>"Array"</literal>.
</simpara>
</listitem>
<listitem>
<simpara>
- Converting an array to string will now cause an <constant>E_NOTICE</constant>. The
result of
- the cast will still be <literal>"Array"</literal>.
+ Turning &null;, &false; or an empty string into an object by adding a property
+ will now emit a warning instead of an <constant>E_STRICT</constant> error.
</simpara>
</listitem>
<listitem>
@@ -137,13 +139,13 @@
</listitem>
<listitem>
<simpara>
- <function>array_combine</function> now returns
<literal>array()</literal> instead of &false;
- when two empty arrays are provided as parameters.
+ The Salsa10 and Salsa20 <link linkend="book.hash">hash algorithms</link>
have been removed.
</simpara>
</listitem>
<listitem>
<simpara>
- <link linkend="language.references.pass">Call-time pass by
reference</link> has been removed.
+ <function>array_combine</function> now returns
<literal>array()</literal> instead of &false;
+ when two empty arrays are provided as parameters.
</simpara>
</listitem>
<listitem>