<?php
class Foo
{
public static function bar()
{
call_user_func_array('self::baz', []);
}
public static function baz()
{
die('failed');
}
}
class Bar
{
public static function baz()
{
die('Worked!');
}
}
Bar::bar();
Fatal error: Uncaught Error: Call to undefined method Bar::bar() in /in/qe1ZJ:28
Stack trace:
#0 {main}
thrown in /in/qe1ZJ on line 28
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Fatal error: Call to undefined method Bar::bar() in /in/qe1ZJ on line 28
Process exited with code 255.