File size: 418 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | --TEST--
Ensure callback methods in unknown classes trigger autoload.
--FILE--
<?php
spl_autoload_register(function ($name) {
echo "In autoload: ";
var_dump($name);
});
try {
call_user_func("UndefC::test");
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
In autoload: string(6) "UndefC"
call_user_func(): Argument #1 ($callback) must be a valid callback, class "UndefC" not found
|