Re: Magic method visibility in PHP 5.3+
| From: | Daniel Convissor | Date: | Wed, 02 Jul 2008 15:17:33 +0000 |
| Subject: | Re: Magic method visibility in PHP 5.3+ | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38702@lists.php.net to get a copy of this message | ||
On Tue, Jul 01, 2008 at 05:55:49PM -0500, Ralph Schindler wrote:
> In PHP 5.3 snaps, it appears that magic methods __isset, __unset, __get,
> __set must have a public visibility or the engine will trigger a
> warning. Why is this? It works as expected in 5.x branches.
Because that's what the manual says it should do. And there are
technical reasons outlined by others here already. Here is the internals
discussion about getting things straight:
http://news.php.net/php.internals/36813
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409