late static binding

php.internals

Lukas Kahwe Smith

19 years ago
Hello, does anyone have a patch for PHP6 to add late static binding? have we agreed on the syntax? IIRC, static:: as the favorite ..? regards, Lukas

Andrei Zmievski

19 years ago
That one seems fine to me. -Andrei On Apr 26, 2007, at 8:00 AM, Lukas Kahwe Smith wrote:

Marcus Börger

19 years ago
Hello Lukas, iirc everyone interested agreed to that syntax. However so far we only saw one implementation and that comes with a slowdown of every function call. The problem is that the only known solution so far is to puch the context (the initial calling scope/class) along with $this etc on the calling stack. That would result in pushing 4 instead of 3 pointers. However there hasn't been an analysis of permformance impact - at least not that i am aware of. best regards marcus Thursday, April 26, 2007, 5:00:06 PM, you wrote:
> Hello,
> does anyone have a patch for PHP6 to add late static binding?
> have we agreed on the syntax? > IIRC, static:: as the favorite ..?
> regards, > Lukas
Best regards, Marcus