Stupid me, I forgot that __get/__set et al don't have to be public to
function properly in php >= 5.1.0. Is this true of all magic methods?



Totally not a stupid question at all.. its just a design decision to be aware of... and something all developers across the board should be aware of if they are to use the magic methods..

While the manual isn't always the php biblical reference, this page says in a very round about way that 5.0.x needed to be public:

http://us2.php.net/manual/en/language.oop5.overloading.php

considering those methods came around in 5.x I can only assume they mean that its not the case for 5.1.x, also, it works as one would expect ;)

-ralph

Reply via email to