summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63468.phpt
blob: 3eb289e752cadce8a5a908b0b4c689eeb2b7da7e (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"