summaryrefslogtreecommitdiff
path: root/Zend/tests/bug62814.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-03-29 19:07:14 +0200
committerNikita Popov <nikic@php.net>2016-03-29 19:08:17 +0200
commit32294a25c84106e3f34c64137acfecbe3e16aef2 (patch)
treea24b1f8288fd7ea220dd175006f8f3a8898eb3dc /Zend/tests/bug62814.phpt
parent20a87bd007ceb3388f50935430e4fc9dc49c25c1 (diff)
downloadphp-git-32294a25c84106e3f34c64137acfecbe3e16aef2.tar.gz
Fixed bug #62814
Diffstat (limited to 'Zend/tests/bug62814.phpt')
-rw-r--r--Zend/tests/bug62814.phpt20
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