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