xref: /PHP-8.0/Zend/tests/bug42798.phpt (revision 7aacc705)
1--TEST--
2Bug #42798 (_autoload() not triggered for classes used in method signature)
3--FILE--
4<?php
5spl_autoload_register(function ($className) {
6    print "$className\n";
7    exit();
8});
9
10function foo($c = ok::constant) {
11}
12
13foo();
14?>
15--EXPECT--
16ok
17