summaryrefslogtreecommitdiff
path: root/Zend/tests/bug78898.phpt
blob: 9efd1416e205da57171bbbddad2d1cefd86cc6e2 (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
28
29
30
31
32
33
34
--TEST--
Bug #78898: call_user_func(['parent', ...]) fails while other succeed
--FILE--
<?php

class A
{
	protected function _x()
	{
		echo "a";
	}

	public function __call($methodName, array $arguments)
	{
		throw new Exception("Unknown method.");
	}
}

class B extends A
{
	public function x()
	{
		parent::_x();
		call_user_func('parent::_x');
		call_user_func(['parent', '_x']);
	}
}

$b = new B;
$b->x();

?>
--EXPECT--
aaa