Arquivos
hhvm/hphp/test/quick/FPushClsMethodF.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

31 linhas
425 B
PHP

<?php
class B {
public static function g1() {
static::h();
}
public static function h() {
echo "B\n";
}
}
class C extends B {
public static function f() {
B::g1();
parent::g1();
C::g2();
self::g2();
}
public static function g2() {
static::h();
}
public static function h() {
echo "C\n";
}
}
class D extends C {
public static function h() {
echo "D\n";
}
}
D::f();