vrana Thu Oct 28 05:21:01 2004 EDT
Modified files:
/phpdoc/en/reference/var/functions empty.xml
Log:
Empty object is not empty() in PHP 5 (bug #30337)
http://cvs.php.net/diff.php/phpdoc/en/reference/var/functions/empty.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/var/functions/empty.xml
diff -u phpdoc/en/reference/var/functions/empty.xml:1.8
phpdoc/en/reference/var/functions/empty.xml:1.9
--- phpdoc/en/reference/var/functions/empty.xml:1.8 Mon Mar 29 13:49:02 2004
+++ phpdoc/en/reference/var/functions/empty.xml Thu Oct 28 05:20:59 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
<refentry id="function.empty">
<refnamediv>
@@ -16,10 +16,10 @@
<function>empty</function> returns &false; if
<parameter>var</parameter> has a non-empty and non-zero value. In
otherwords, <literal>""</literal>, <literal>0</literal>,
- <literal>"0"</literal>, &null;, &false;, <literal>array()</literal>,
- <literal>var $var;</literal>, and objects with empty properties, are
- all considered empty. &true; is returned if <parameter>var</parameter>
- is empty.
+ <literal>"0"</literal>, &null;, &false;, <literal>array()</literal>, and
+ <literal>var $var;</literal> are all considered empty. In PHP 4 and
+ earlier also objects with empty properties are considered empty while
+ not in PHP 5. &true; is returned if <parameter>var</parameter> is empty.
</para>
<para>
<function>empty</function> is the opposite of