Arquivos
hhvm/hphp/test/vm/priv2.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

18 linhas
269 B
PHP

<?php
class C {
private function foo() {
echo "C::foo\n";
}
public function test() {
// This should not call C::foo, it should fatal
D::foo();
}
}
class D extends C {
private function foo() {
echo "D::foo\n";
}
}
$obj = new C;
$obj->test();