1--TEST--
2ZE2 A derived class does not know anything about inherited private methods
3--FILE--
4<?php
5class base {
6    private function show() {
7        echo "base\n";
8    }
9    function test() {
10        $this->show();
11    }
12}
13
14$t = new base();
15$t->test();
16
17class derived extends base {
18    function show() {
19        echo "derived\n";
20    }
21    function test() {
22        echo "test\n";
23        $this->show();
24        parent::test();
25        parent::show();
26    }
27}
28
29$t = new derived();
30$t->test();
31?>
32--EXPECTF--
33base
34test
35derived
36base
37
38Fatal error: Uncaught Error: Call to private method base::show() from scope derived in %s:%d
39Stack trace:
40#0 %s(%d): derived->test()
41#1 {main}
42  thrown in %s on line %d
43