ID:               32331
 Updated by:       php-bugs@lists.php.net
 Reported By:      rael at grad dot icmc dot usp dot br
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Feature/Change Request
 Operating System: Windows XP Professional SP2
 PHP Version:      5.0.1
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


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

[2005-03-21 12:58:13] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip



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

[2005-03-21 12:38:45] rael at grad dot icmc dot usp dot br

I was said "override", but the correct is "redeclare" in case of static
properties.

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

[2005-03-16 11:58:13] rael at grad dot icmc dot usp dot br

Description:
------------
I'm a longer time java programmer, and I'm trying PHP5. But, for my
surprise, I saw that static properties cannot be overwrite. Why? This
make not sense!

Reproduce code:
---------------
class a { 
    protected static $v = "aa";
    public static function foo(){
      echo self::$v;
    }
} 

class b extends a{
    protected static $v = "bb";
    public static function foo(){
      echo self::$v;
    }
}


Expected result:
----------------
No runtime error

Actual result:
--------------
Cannot redeclare property static protected a::$v in
class b


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


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

Reply via email to