Arquivos
hhvm/hphp/test/quick/inherit-static-local.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

24 linhas
280 B
PHP

<?php
class C {
public static function foo() {
static $x = 0;
++$x;
var_dump($x);
}
}
class D extends C {
public static function callByParent() {
parent::foo();
}
}
C::foo();
C::foo();
C::foo();
D::foo();
D::foo();
D::callByParent();
D::callByParent();