summaryrefslogtreecommitdiff
path: root/Zend/tests/bug62814.phpt
blob: c08360dd95557e6b97bfaebd238d56c78f608118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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