# late static binding

- Thread: https://externals.io/message/29051
- Original archive: https://news-web.php.net/php.internals/29051
- Started by Lukas Kahwe Smith on 2007-04-26T15:00:06+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #29051 — Lukas Kahwe Smith — 2007-04-26T15:00:06+00:00

URL: https://externals.io/message/29051#29051

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

---

## #29053 — Andrei Zmievski — 2007-04-26T15:55:45+00:00

URL: https://externals.io/message/29051#29053 · In reply to: #29051

That one seems fine to me.

-Andrei



> 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

---

## #29058 — Marcus Boerger — 2007-04-26T17:20:13+00:00

URL: https://externals.io/message/29051#29058 · In reply to: #29051

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
