svn: /phpdoc/en/trunk/appendices/ migration54.xml

From: Date: Tue, 06 Mar 2012 15:30:00 +0000
Subject: svn: /phpdoc/en/trunk/appendices/ migration54.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9837@lists.php.net to get a copy of this message
jpauli Tue, 06 Mar 2012 15:30:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=323955 Log: Improved/reviewed migration guide. New links Changed paths: U phpdoc/en/trunk/appendices/migration54.xml Modified: phpdoc/en/trunk/appendices/migration54.xml =================================================================== --- phpdoc/en/trunk/appendices/migration54.xml 2012-03-06 14:25:08 UTC (rev 323954) +++ phpdoc/en/trunk/appendices/migration54.xml 2012-03-06 15:30:00 UTC (rev 323955) @@ -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> @@ -308,8 +308,6 @@ <section xml:id="migration54.deprecated"> <title>Deprecated features in PHP 5.4.x</title> <simpara> - </simpara> - <simpara> Deprecated functions: </simpara> <itemizedlist> @@ -1330,13 +1328,6 @@ <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 errors, as per the <link linkend="ini.error-reporting">error_reporting</link>. </simpara> @@ -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>

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