note 91294 deleted from function.empty by bjori
| From: | bjori@php.net | Date: | Thu, 04 Jun 2009 09:06:35 +0000 |
| Subject: | note 91294 deleted from function.empty by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156348@lists.php.net to get a copy of this message | ||
Note Submitter: heikki dot leppanen at extendeddisc dot com
----
class A {
var $vars = {'a'=>'aa', 'b'=>'bb'};
function __get ($name) {
return $this->vars[$name];
}
}
$x = new A();
if (empty($this->a))
echo "this is empty");
else
echo "this in not empty");
RESULT:
this is empty
For me it looks a bug! Any experience?