Location: PHPKode > projects > phc > test/subjects/bugs/bug0025.php
<?

	// Reported by Gary Wassermann.
	// August 17th, 2007

	// A::bar doesnt update A::q appropriately.
	class A
	{
		static $q = 2345;
		function bar()
		{
			A::$q++;
			echo A::$q, "\n";
		}
	}
	A::bar();
	A::bar();
	A::bar();


	$q = 2345;
	$q++;
	var_dump ($q);
	$q++;
	var_dump ($q);
	$q++;
	var_dump ($q);
?>
Return current item: phc