503f75d08b
These names don't make sense now that we run both suites the same way.
31 linhas
425 B
PHP
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();
|
|
|