# Static Member Overloading

- Thread: https://externals.io/message/38912
- Original archive: https://news-web.php.net/php.internals/38912
- Started by Ryan Panning on 2008-07-11T13:11:39+00:00
- Messages: 2
- 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

---

## #38912 — Ryan Panning — 2008-07-11T13:11:39+00:00

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

Was static member overloading added in PHP 5.3? I noticed that static 
method overloading was (__callStatic). The two would complement each 
other and it just seems natural to add these as well. I did notice that 
they are apart of the "static-class" RFC and a bug report, but it would 
be nice to see these in 5.3. With this addition and LSB, php classes can 
do so much! Ex:

__setStatic()
__getStatic()
__issetStatic()
__unsetStatic()


RFC: http://wiki.php.net/rfc/static-classes
Bug Report: http://bugs.php.net/bug.php?id=45002

---

## #38913 — Lars Strojny — 2008-07-11T13:32:14+00:00

URL: https://externals.io/message/38912#38913 · In reply to: #38912

Hi Ryan,

Am Freitag, den 11.07.2008, 08:11 -0500 schrieb Ryan Panning:

> Was static member overloading added in PHP 5.3? I noticed that static 
> method overloading was (__callStatic). The two would complement each 
> other and it just seems natural to add these as well. I did notice
> that they are apart of the "static-class" RFC and a bug report, but it
> would be nice to see these in 5.3. With this addition and LSB, php
> classes can do so much! Ex:

if the RFC for static classes will be accepted, static property
interceptors will be a part of the next PHP major version (might it be
5.4 or 6). So it won't make it into 5.3, but we will have that hopefully
in the future.

cu, Lars
