mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
7aacc705d0
Closes GH-5958
31 lines
434 B
PHP
31 lines
434 B
PHP
--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"
|