source: src/router/php7/Zend/tests/bug62814.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 366 bytes
Line 
1--TEST--
2Bug #62814: It is possible to stiffen child class members visibility
3--FILE--
4<?php
5
6class A {
7    private function test() { }
8}
9
10class B extends A {
11    protected function test() { }
12}
13
14class C extends B {
15    private function test() { }
16}
17
18?>
19--EXPECTF--
20Fatal error: Access level to C::test() must be protected (as in class B) or weaker in %s on line %d
Note: See TracBrowser for help on using the repository browser.