All pastes #926079 Raw Edit

Stuff

public php v1 · immutable
·published 2008-03-03 15:30 UTC
rendered paste body
<?phpClass Frog {  protected static $colour = 'green';  static function show() { var_dump(Frog::$colour); }}Class SpecialFrog extends Frog {  public static $colour;  static function show() { var_dump(SpecialFrog::$colour); }}SpecialFrog::$colour = 'blue';Frog::show();SpecialFrog::show();?>---- Output before patch ----string(4) "blue"string(4) "blue"---- Output after patch ----string(5) "green"string(4) "blue"