1--TEST-- 2Calling non-static method with call_user_func() 3--FILE-- 4<?php 5 6class foo { 7 public function teste() { 8 $this->a = 1; 9 } 10} 11 12call_user_func(array('foo', 'teste')); 13 14?> 15--EXPECTF-- 16Deprecated: %son-static method foo::teste() should not be called statically in %s on line %d 17 18Fatal error: Uncaught Error: Using $this when not in object context in %s:%d 19Stack trace: 20#0 %s(%d): foo::teste() 21#1 {main} 22 thrown in %s on line %d 23