mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
7aacc705d0
Closes GH-5958
17 lines
250 B
PHP
17 lines
250 B
PHP
--TEST--
|
|
Bug #42798 (_autoload() not triggered for classes used in method signature)
|
|
--FILE--
|
|
<?php
|
|
spl_autoload_register(function ($className) {
|
|
print "$className\n";
|
|
exit();
|
|
});
|
|
|
|
function foo($c = ok::constant) {
|
|
}
|
|
|
|
foo();
|
|
?>
|
|
--EXPECT--
|
|
ok
|