summaryrefslogtreecommitdiff
path: root/Zend/tests/bug33277.phpt
blob: 859c4496333f80df875710f282091e8aaba92591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #33277 (private method accessed by child class)
--FILE--
<?php
class foo {
        private function bar() {
                echo "private!\n";
        }
}
 
class fooson extends foo {
        function barson() {
                $this->bar();
        }
}
 
class foo2son extends fooson {
 
        function bar() {
                echo "public!\n";
        }
}
 
$b = new foo2son();
$b->barson();
?>
--EXPECT--
public!