Re: [RFC] Re: [PHP-DEV] __invoke() weirdness

From: Date: Wed, 31 Dec 2008 19:33:43 +0000
Subject: Re: [RFC] Re: [PHP-DEV] __invoke() weirdness
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-42427@lists.php.net to get a copy of this message
On Wed, Dec 31, 2008 at 20:12, Marcus Boerger <helly@php.net> wrote: > Hello Lars, > > Wednesday, December 31, 2008, 6:59:08 PM, you wrote: > >> Hi Markus, > >> have you measured the performance impact in a class with - say - ten >> methods? And what to do with __get() and __call()? How are the >> prioritized in the method resolve order? > > Translated into user code we now have: > > public function __zend_call($name, $args) { > // Added property lookup > if (isset($this->$name)) { // may call __isset > $callable = $this->$name; // may call __get Uhmm. I hope I got this wrong as: class foo { function __isset() { return true; } function __get() { return "hello world"; } function __call() { } } $foo = new foo; $foo->foobar(); will first execute __isset(), then __get() and then __call()? That is a major backwards compatibility break, and increases the inconsistency and decreases readability 10times -Hannes

« previous php.internals (#42427) next »