mirror of
https://github.com/php/php-src.git
synced 2024-09-27 04:47:22 +00:00
28 lines
360 B
Plaintext
28 lines
360 B
Plaintext
|
--TEST--
|
||
|
Bug #69427 (Segfault on magic method __call of private method in superclass)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class SubClass extends BaseClass
|
||
|
{
|
||
|
}
|
||
|
|
||
|
abstract class BaseClass
|
||
|
{
|
||
|
public function __call($name, $arguments)
|
||
|
{
|
||
|
return $this->$name();
|
||
|
}
|
||
|
|
||
|
private function foobar()
|
||
|
{
|
||
|
return 'okey';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$test = new SubClass();
|
||
|
echo $test->foobar();
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
okey
|