php-src/Zend/tests/bug69427.phpt
2020-02-03 22:52:20 +01:00

28 lines
390 B
PHP

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