--TEST-- Bug #77877 call_user_func() passes $this to static methods --FILE-- getMessage() . "\n"; } try { call_user_func([new Foo, 'bar']); } catch (Throwable $e) { echo $e->getMessage() . "\n"; } ?> --EXPECT-- Using $this when not in object context Using $this when not in object context