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--
16Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method foo::teste() should not be called statically in %s on line %d
17
18Fatal error: Using $this when not in object context in %s on line %d
19