#27897 [Opn->Csd]: static memebers overloading

From: Date: Mon, 03 Apr 2006 10:49:14 +0000
Subject: #27897 [Opn->Csd]: static memebers overloading
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95257@lists.php.net to get a copy of this message
ID: 27897 Updated by: tony2001@php.net 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

« previous php.bugs (#95257) next »