mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
14 lines
376 B
PHP
14 lines
376 B
PHP
--TEST--
|
|
call_user_func() in combination with "Call to a member function method() on a non-object"
|
|
--FILE--
|
|
<?php
|
|
$comparator= null;
|
|
var_dump(call_user_func([$comparator, 'compare'], 1, 2));
|
|
echo "Alive\n";
|
|
?>
|
|
--EXPECTF--
|
|
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
|
|
NULL
|
|
Alive
|
|
|