mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
16 lines
247 B
PHP
16 lines
247 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
|