Arquivos
hhvm/hphp/test/vm/call13.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
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.
2013-02-11 02:10:41 -08:00

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();