1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--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