php-src/Zend/tests/bug62814.phpt

21 lines
366 B
Plaintext
Raw Normal View History

2016-03-30 01:07:14 +08:00
--TEST--
Bug #62814: It is possible to stiffen child class members visibility
--FILE--
<?php
class A {
private function test() { }
}
class B extends A {
protected function test() { }
}
class C extends B {
private function test() { }
}
?>
--EXPECTF--
Fatal error: Access level to C::test() must be protected (as in class B) or weaker in %s on line 12