note 75680 deleted from function.empty by nlopess
| From: | nlopess@php.net | Date: | Tue, 19 Jun 2007 12:31:45 +0000 |
| Subject: | note 75680 deleted from function.empty by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127774@lists.php.net to get a copy of this message | ||
Note Submitter: florian.sonner [at] t-online.de
----
Since a few people here mentioned that empty will not work with magic-overloading
("__get($var)"):
empty(..) goes the same way as isset(..) do, to check if a property exists. Thus you have to
override the magic-function __isset($var) to produce correct results for empty(..) in combination
with a magic-overloaded property.