mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
840e441d2d
This parameter name has been changed to $callback.
14 lines
399 B
PHP
14 lines
399 B
PHP
--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 ($callback) must be a valid callback, first array member is not a valid class name or object
|