--TEST-- Dynamic static call of non-static method --FILE-- test1(); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { $x->test2(); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Non-static method Foo::bar() cannot be called statically Non-static method Foo::bar() cannot be called statically