diff options
author | Nikita Popov <nikic@php.net> | 2016-03-29 19:07:14 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-03-29 19:08:17 +0200 |
commit | 32294a25c84106e3f34c64137acfecbe3e16aef2 (patch) | |
tree | a24b1f8288fd7ea220dd175006f8f3a8898eb3dc /Zend/tests/bug62814.phpt | |
parent | 20a87bd007ceb3388f50935430e4fc9dc49c25c1 (diff) | |
download | php-git-32294a25c84106e3f34c64137acfecbe3e16aef2.tar.gz |
Fixed bug #62814
Diffstat (limited to 'Zend/tests/bug62814.phpt')
-rw-r--r-- | Zend/tests/bug62814.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/bug62814.phpt b/Zend/tests/bug62814.phpt new file mode 100644 index 0000000000..6646aa283f --- /dev/null +++ b/Zend/tests/bug62814.phpt @@ -0,0 +1,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 %d |