adding derick's comment

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@153077 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-03-07 09:40:13 +00:00
parent 10a00f5837
commit 1479fc5188

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- $Revision: 1.11 $ -->
<appendix id="migration5">
<title>Migrating from PHP 4 to PHP 5</title>
@ -66,6 +66,9 @@
the CLI version will now always populate the global $argc and $argv
variables.
</simpara></listitem>
<listitem><simpara>
An object with no properties is no longer considered "empty".
</simpara></listitem>
<listitem><simpara>
Classes must be declared before used.
</simpara></listitem>
@ -82,6 +85,26 @@ var_dump(strrpos('ABCDEF','DEF')); //int(3)
var_dump(strrpos('ABCDEF','DAF')); //bool(false)
?>
]]>
</programlisting>
</example>
</para>
<para>
<example>
<title>An object with no properties is no longer considered "empty"</title>
<programlisting role="php">
<![CDATA[
<?php
class test { }
$t = new test();
var_dump(empty($t)); // echo bool(false)
if (!$t) {
// Will be executed
}
?>
]]>
</programlisting>
</example>
@ -536,6 +559,13 @@ Action application/x-httpd-php "/php/php-cgi.exe"
PostgreSQL). The SQLite library reads and writes directly to and from the
database files on disk.
</para>
<note>
<para>
The <link linkend="ref.tidy">Tidy</link> extension has also changed its
API completly.
</para>
</note>
</section>
<section id='migration5.oop'>