Arquivos
hhvm/hphp/test/quick/hopt-static.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

20 linhas
217 B
PHP

<?php
class Foo {
public static $z = 0;
public static function setZ($a) {
Foo::$z = $a;
}
public static function getZ() {
return Foo::$z;
}
}
$a = new Foo();
$a->setZ(4);
var_dump($a->getZ());