﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	appname	phpversion	exts	sapi	probability	blockedby	blocking
36	Bug in inherited static class variables	Vladan Zajda	moo	"Hello,
There is a bug in inherited static class variable when using cached php. The value of inherited static variable is altered back to its initial value.
Tested only on WinXP/PHP 5.1.6 using XCache 1.0.2 but this seems to be global bug.

Here's an example:

{{{
<?php
         
class B {
   static protected $B = 'initial value';
  
   public static function setB($value) {
      if ($value) {
         self::$B = 'different value';
      }
   }

   public function showBinB() {
      echo ""static \$B in B = "" . self::$B . ""<br />"";
   }
}

class C extends B {
   public function showBinC() {
      echo ""static \$B in C = "" . self::$B . ""<br />"";
   }    
}

B::setB(true);
$c = new C();
$c->showBinB();
$c->showBinC();

?>
}}}
"	defect	closed	major	1.2	cacher	1.0.2	fixed	static class variable								
