363d1bb20f
This change is mostly for FB internal organizational reasons. Building is not effected beyond the fact that the target now lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
35 linhas
453 B
PHP
35 linhas
453 B
PHP
<?php
|
|
class C {
|
|
}
|
|
class D extends C {
|
|
public function __call($fn, $args) {
|
|
echo "D::__call\n";
|
|
}
|
|
}
|
|
class E extends D {
|
|
public function __call($fn, $args) {
|
|
echo "E::__call\n";
|
|
}
|
|
public function test() {
|
|
$this->foo();
|
|
D::foo();
|
|
E::foo();
|
|
}
|
|
}
|
|
class F extends D {
|
|
public function __call($fn, $args) {
|
|
echo "F::__call\n";
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
$obj = new E;
|
|
$obj->test();
|
|
|
|
$obj->foo();
|
|
E::foo();
|
|
}
|
|
|
|
main();
|
|
|