Hi,

Am Dienstag, den 25.03.2008, 11:04 +0000 schrieb Robin Fernandes:
[...]
> 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()).

Would that mean that the following code does not work anymore?

<?php
class Foo
{
        protected function method()
        {
        }

        public function doSomething(Foo $foo)
        {
                $foo->method();
        }
}

$foo1 = new Foo();
$foo1->doSomething(new Foo());

[...]

cu, Lars

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to