summaryrefslogtreecommitdiff
path: root/Zend/tests/bug42798.phpt
blob: 1c458677225d0713a0eb4baeddf4a0ecfca21e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #42798 (_autoload() not triggered for classes used in method signature)
--FILE--
<?php
function __autoload($className) {
    print "$className\n";
    exit();
}

function foo($c = ok::constant) {
}

foo();
--EXPECT--
ok