summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69427.phpt
blob: 6b739df9617fe4a35ecb51f1a6bf91d11c1e615c (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
--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