mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Improved/reviewed migration guide. New links
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323955 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d5ac5b0152
commit
b99daa8f07
1 changed files with 6 additions and 15 deletions
|
@ -100,16 +100,16 @@
|
|||
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 <function>date_default_timezone_set</function>
|
||||
function. PHP will no longer attempt to guess the timezone, and will instead fall back to "UTC" and issue
|
||||
a warning.
|
||||
a <constant>E_WARNING</constant>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Non-numeric string offsets - e.g. <literal>$a['foo']</literal> where $a is a string - now return
|
||||
false on <function>isset</function> and true on <function>empty</function>, and produce a warning
|
||||
if you try to use them. Offsets of types double, bool and null produce a notice. Numeric strings
|
||||
false on <function>isset</function> and true on <function>empty</function>, and produce a <constant>E_WARNING</constant>
|
||||
if you try to use them. Offsets of types double, bool and null produce a <constant>E_NOTICE</constant>. Numeric strings
|
||||
(e.g. <literal>$a['2']</literal>) still work as before. Note that offsets like <literal>'12.3'</literal>
|
||||
and <literal>'5 foobar'</literal> are considered non-numeric and produce a warning, but are converted
|
||||
and <literal>'5 foobar'</literal> are considered non-numeric and produce a <constant>E_WARNING</constant>, but are converted
|
||||
to 12 and 5 respectively, for backward compatibility reasons.
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
@ -228,7 +228,7 @@
|
|||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Closures now support <literal>$this</literal>.
|
||||
<link linkend="functions.anonymous">Closures</link> now support <literal>$this</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
|
@ -307,8 +307,6 @@
|
|||
|
||||
<section xml:id="migration54.deprecated">
|
||||
<title>Deprecated features in PHP 5.4.x</title>
|
||||
<simpara>
|
||||
</simpara>
|
||||
<simpara>
|
||||
Deprecated functions:
|
||||
</simpara>
|
||||
|
@ -1328,13 +1326,6 @@
|
|||
<section xml:id="migration54.other">
|
||||
<title>Other changes</title>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Changed <link linkend="ini.session.entropy-file">session.entropy_file</link>, which
|
||||
now defaults to <literal>/dev/urandom</literal> or <literal>/dev/arandom</literal> if
|
||||
either are present at compile time.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<constant>E_ALL</constant> now includes <constant>E_STRICT</constant> level
|
||||
|
@ -1399,7 +1390,7 @@
|
|||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
It's now possible to enforce the class' __construct arguments in an abstract
|
||||
It's now possible to enforce the class' <link linkend="language.oop5.decon">__construct</link> arguments in an abstract
|
||||
constructor in the base class.
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
|
Loading…
Reference in a new issue