xref: /PHP-8.2/Zend/tests/bug69427.phpt (revision f8d79582)
1--TEST--
2Bug #69427 (Segfault on magic method __call of private method in superclass)
3--FILE--
4<?php
5
6class SubClass extends BaseClass
7{
8}
9
10abstract class BaseClass
11{
12    public function __call($name, $arguments)
13    {
14        return $this->$name();
15    }
16
17    private function foobar()
18    {
19        return 'okey';
20    }
21}
22
23$test = new SubClass();
24echo $test->foobar();
25?>
26--EXPECT--
27okey
28