dis-bench / src /php /php-src /tests /classes /autoload_011.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
347 Bytes
--TEST--
Ensure extends does trigger autoload.
--FILE--
<?php
spl_autoload_register(function ($name) {
echo "In autoload: ";
var_dump($name);
});
class C extends UndefBase
{
}
?>
--EXPECTF--
In autoload: string(9) "UndefBase"
Fatal error: Uncaught Error: Class "UndefBase" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d