title: PHP cannot override protected static
body: <p>I can't seem to be able to override <code>protected static</code> variables. It's rather annoying, given that you cannot override any private variable as well. Howcan I fix that? (Have to support PHP 5.2)</p>
  <pre><code>&lt;?
  class Foo{
      protected static $stuff = 'Foo';
      public function showStuff(){
          echo self::$stuff . PHP_EOL;
      }
  }
  
  class Bar extends Foo{
      protected static $stuff = 'Bar';
  }
  
  $f = new Foo();
  $b = new Bar();
  $f-&gt;showStuff(); // Output: Foo
  $b-&gt;showStuff(); // Output: Foo
  ?&gt;
  </code></pre>