Static properties
| From: | Edin Kadribasic | Date: | Tue, 25 Apr 2006 11:30:28 +0000 |
| Subject: | Static properties | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-22954@lists.php.net to get a copy of this message | ||
Hi,
I was wondering if someone could enlighten me why it is not possible to
create on-the-fly static properties:
php -r 'class foo{}; foo::$bar = 1;'
Fatal error: Access to undeclared static property: foo::$bar in Command
line code on line 1
Was this not possible because of the engine implementation of the static
properties?
Edin