Re: [PHP-DEV] __get() magic method and its use with empty() function.

2008-10-04 Thread M.
Hello, Le samedi 04 octobre 2008 à 22:59 +0200, Kuba Wieczorek a écrit : > Well, this is a sample code for this: > > header('Content-type: text/plain'); > > class test > { > protected $a; > protected $b = 'test'; > > public function __get($var) > { > retur

[PHP-DEV] __get() magic method and its use with empty() function.

2008-10-04 Thread Kuba Wieczorek
Hello, I'd like to talk about one thing I experienced using __get() magic method. It is a problem reported for the first time in a bug report (http://bugs.php.net/bug.php?id=24915) about five years ago but it has been closed and marked as 'Won't fix'. Well, this is a sample code for this: $