Stanislav Malyshev wrote:
Hi!
IMHO __get is not consistent at the first place.
on possible example:
It is perfectly consistent. You just need to read what it actually does:
http://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members
instead of imagining what it could do.
It is not because it is written somewhere in the documentation that it
make sense.
This kind of operation is the kind you want to do with a meta-level, not
the base level.
You could even use mirror and design a security layer:
http://gbracha.blogspot.com/2010/03/through-looking-glass-darkly.html
I don' assume __get should work in "a" or "b" way.
So to clarify IMHO it should not exist at all!
-- Mathieu Suen
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php