|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-09 18:05 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 22:00:01 2025 UTC |
Description: ------------ I don't know if it is by design, but this is not what I would expect logically... Reproduce code: --------------- <?php class A { static $var = 'foo'; static function getvar (){ return self::$var; } } class B extends A{ static $var = 'bar'; } echo A::getvar(); echo B::getvar(); ?> Expected result: ---------------- foobar Actual result: -------------- foofoo