blob: 22130c524a1b4f53fc07424c0727971471e4a07f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
call_user_func(): Wrong parameters
--FILE--
<?php
call_user_func(array('Foo', 'bar'));
call_user_func(array(NULL, 'bar'));
call_user_func(array('stdclass', NULL));
?>
--EXPECTF--
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found in %s on line %d
Warning: 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
Warning: call_user_func() expects parameter 1 to be a valid callback, second array member is not a valid method in %s on line %d
|