1--TEST-- 2Incompatible context call (non-internal function) 3--INI-- 4error_reporting=E_ALL 5--FILE-- 6<?php 7 8class A { 9 function foo() { var_dump(get_class($this)); } 10} 11class B { 12 function bar() { A::foo(); } 13} 14$b = new B; 15$b->bar(); 16 17?> 18--EXPECTF-- 19Deprecated: Non-static method A::foo() should not be called statically, assuming $this from incompatible context in %s on line %d 20string(1) "B" 21