|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 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(){} }