summaryrefslogtreecommitdiff
path: root/Zend/tests/bug42798.phpt
blob: 5f19fe3080255a1b2500bdb6c2d53ccf7c08536c (plain)
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