1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/Zend/tests/magic_methods/bug53826.phpt
DanielEScherzer bce1f4aeb1 Zend/tests: organize some tests with sub directories (3) (#16444)
First pass at moving `Zend/tests/bug*` tests to existing sub directories

Work towards GH-15631
2025-02-10 00:35:51 +00:00

34 lines
719 B
PHP

--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