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