[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
kmspico
/
release
/
dorams
/
geromi
/
[
Home
]
File: bug66719.phpt
--TEST-- Bug #66719: Weird behaviour when using get_called_class() with call_user_func() --FILE-- <?php class A { public static function who() { var_dump(get_called_class()); } } class B extends A { public static function who() { parent::who(); } } class C { public static function test() { B::who(); call_user_func(array(A::class, 'who')); call_user_func(array(B::class, 'parent::who')); } } B::who(); call_user_func(array(A::class, 'who')); call_user_func(array(B::class, 'parent::who')); C::test(); ?> --EXPECTF-- string(1) "B" string(1) "A" Deprecated: Callables of the form ["B", "parent::who"] are deprecated in %s on line %d string(1) "A" string(1) "B" string(1) "A" Deprecated: Callables of the form ["B", "parent::who"] are deprecated in %s on line %d string(1) "A"