mirror of
https://github.com/php/php-src.git
synced 2025-01-03 17:33:32 +08:00
15 lines
365 B
PHP
15 lines
365 B
PHP
--TEST--
|
|
Ensure callback methods in unknown classes trigger autoload.
|
|
--FILE--
|
|
<?php
|
|
spl_autoload_register(function ($name) {
|
|
echo "In autoload: ";
|
|
var_dump($name);
|
|
});
|
|
call_user_func("UndefC::test");
|
|
?>
|
|
--EXPECTF--
|
|
In autoload: string(6) "UndefC"
|
|
|
|
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
|