Stanislav Malyshev wrote:
Hi!
So what you're saying is that it is *consistent* with regard to the
implementation of methods/functions, i.e. __get behaves as an
ordinary method.
Yes, it does.
IMHO __get is not consistent at the first place.
on possible example:
class A
{
protected $foo;
public function __get($name)
{
echo 'GET';
}
public function test()
{
return $this->foo;
}
}
$a = new A;
$a->foo;
$a->test();
-- Mathieu Suen
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php