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.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323670 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nikita Popov 2012-02-29 17:03:22 +00:00
parent 0b24b3ede7
commit ca8560e61d

View file

@ -68,15 +68,6 @@
note of some backward incompatible changes:
</simpara>
<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
@ -84,18 +75,6 @@
adjustements in terms of security.
</simpara>
</listitem>
<listitem>
<simpara>
The Salsa10 and Salsa20 <link linkend="book.hash">hash algorithms</link> have been removed.
</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".
</simpara>
</listitem>
<listitem>
<simpara>
<link linkend="security.magicquotes">Magic quotes</link> has been removed. Applications relying
@ -107,6 +86,29 @@
<constant>E_CORE_ERROR</constant>.
</simpara>
</listitem>
<listitem>
<simpara>
<link linkend="language.references.pass">Call-time pass by reference</link> has been removed.
</simpara>
</listitem>
<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>
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>
<simpara>
Non-numeric string offsets - e.g. <literal>$a['foo']</literal> where $a is a string - now return
@ -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>