xref: /PHP-7.4/Zend/tests/bug42798.phpt (revision 162aa1a5)
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--EXPECT--
15ok
16