1--TEST--
2Testing call_user_func() with autoload and passing invalid params
3--FILE--
4<?php
5
6spl_autoload_register(function ($class) {
7	var_dump($class);
8});
9
10call_user_func(array('foo', 'bar'));
11call_user_func(array('', 'bar'));
12call_user_func(array($foo, 'bar'));
13call_user_func(array($foo, ''));
14
15?>
16--EXPECTF--
17string(3) "foo"
18
19Warning: call_user_func() expects parameter 1 to be a valid callback, class 'foo' not found in %s on line %d
20
21Warning: call_user_func() expects parameter 1 to be a valid callback, class '' not found in %s on line %d
22
23Notice: Undefined variable: foo in %s on line %d
24
25Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in %s on line %d
26
27Notice: Undefined variable: foo in %s on line %d
28
29Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in %s on line %d
30