|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 19 12:00:02 2026 UTC |
Description: ------------ I found, that it isn't allowed to overload static members in child classes in PHP5. When trying to do it, the error "Static memeber can't be redeclared" appears. Is it expectable behaviour? If it is, it might be useful to add this feature. Reproduce code: --------------- class MyParent{ static $test = 1; function __construct(){} } class MyChild extends MyParent{ static $test = 2; function __construct(){} }