summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63468.phpt
blob: 00b5a41c90146944a76b1ac10c550b1d1fb73a39 (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
--TEST--
Bug #63468 (wrong called method as callback with inheritance)
--FILE--
<?php
class Foo
{
	public function run()
	{
		return call_user_func(array('Bar', 'getValue'));
	}

	private static function getValue()
	{
		return 'Foo';
	}
}

class Bar extends Foo
{
	public static function getValue()
	{
		return 'Bar';
	}
}

$x = new Bar;
var_dump($x->run());
--EXPECT--
string(3) "Bar"