dis-bench / src /php /php-src /Zend /tests /autoload /bug42798.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
250 Bytes
--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