Re: Inconsistencies when accessing protected members

From: Date: Tue, 25 Mar 2008 11:04:59 +0000
Subject: Re: Inconsistencies when accessing protected members
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-36485@lists.php.net to get a copy of this message
Hi Felipe, On 25/03/2008, Felipe Pena <felipensp@gmail.com> wrote: > Hello, > > Do we keep the support added in N¦9Ö > �Kó°B _öFªØhttp://bugs.php.net/bug.php?id=37632 > (that isn't supported in C++, for instance) My preference would be to completely remove this behaviour, by which protected methods can be invoked from outside of their declaring class's hierarchy. In other words, remove all uses of zend_get_function_root_class() (it is only ever used in conjunction with zend_check_protected()). So I'm in favour of your patch. And I think the declaration of zend_get_function_root_class() could be removed too, as it isn't used anymore after applying the patch. Many thanks, Robin

« previous php.internals (#36485) next »