blob: 3f0a069536c4df696c92241106b6536c3c1a08d7 (
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
29
30
31
32
33
|
--TEST--
Bug #53826: __callStatic fired in base class through a parent call if the method is private
--FILE--
<?php
class A1 {
public function __call($method, $args) { echo "__call\n"; }
public static function __callStatic($method, $args) { echo "__callStatic\n"; }
}
class A2 { // A1 with private function test
public function __call($method, $args) { echo "__call\n"; }
public static function __callStatic($method, $args) { echo "__callStatic\n"; }
private function test() {}
}
class B1 extends A1 {
public function test(){ parent::test(); }
}
class B2 extends A2 {
public function test(){ parent::test(); }
}
$test1 = new B1;
$test2 = new B2;
$test1->test();
$test2->test();
?>
--EXPECT--
__call
__call
|