ID:               27897
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sstar at cien dot ru
-Status:           Open
+Status:           Closed
 Bug Type:         Feature/Change Request
 Operating System: WinXP En Pro
 PHP Version:      5.0.0RC1


Previous Comments:
------------------------------------------------------------------------

[2004-04-07 03:20:15] sstar at cien dot ru

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(){}
}



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27897&edit=1

Reply via email to