1--TEST--
2call_user_func(): Wrong parameters
3--FILE--
4<?php
5
6try {
7    call_user_func(array('Foo', 'bar'));
8} catch (TypeError $e) {
9    echo $e->getMessage(), "\n";
10}
11try {
12    call_user_func(array(NULL, 'bar'));
13} catch (TypeError $e) {
14    echo $e->getMessage(), "\n";
15}
16try {
17    call_user_func(array('stdclass', NULL));
18} catch (TypeError $e) {
19    echo $e->getMessage(), "\n";
20}
21
22?>
23--EXPECT--
24call_user_func(): Argument #1 ($callback) must be a valid callback, class "Foo" not found
25call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object
26call_user_func(): Argument #1 ($callback) must be a valid callback, second array member is not a valid method
27