From bbe759badffbf4d8ab32c3872201d44a655101cb Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 28 Oct 2004 09:20:59 +0000 Subject: [PATCH] Empty object is not empty() in PHP 5 (bug #30337) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@171439 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/empty.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/var/functions/empty.xml b/reference/var/functions/empty.xml index 04b459d85f..990594d058 100644 --- a/reference/var/functions/empty.xml +++ b/reference/var/functions/empty.xml @@ -1,5 +1,5 @@ - + @@ -16,10 +16,10 @@ empty returns &false; if var has a non-empty and non-zero value. In otherwords, "", 0, - "0", &null;, &false;, array(), - var $var;, and objects with empty properties, are - all considered empty. &true; is returned if var - is empty. + "0", &null;, &false;, array(), and + var $var; 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 var is empty. empty is the opposite of