|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-09 11:33 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 12:00:02 2025 UTC |
Description: ------------ I have created a class A with static boolean variable $bool and class B which itherits from A. If I change value of $bool in class B, values A::$bool and B::$bool differ. All other types (integers and strings) works fine. Is this a bug ? Reproduce code: --------------- class A { public static $bool = false; } class B extends A { } B::$bool = true; Expected result: ---------------- B::$bool = true A::$bool = true Actual result: -------------- B::$bool = true A::$bool = false