blob: c158cd1ca12ac1d5082c2f81dff9df6f9b1d2264 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
call_user_func() in combination with "Call to a member function method() on a non-object"
--FILE--
<?php
$comparator = null;
try {
var_dump(call_user_func([$comparator, 'compare'], 1, 2));
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
call_user_func(): Argument #1 ($function) must be a valid callback, first array member is not a valid class name or object
|