- spl_autoload_register: documentation ( source)
- class_exists: documentation ( source)
- spl_autoload_call: documentation ( source)
<?php
function auto($c) {
echo "1\n";
spl_autoload_call($c);
if (!class_exists($c)) {
echo "end\n";
throw new \Exception();
}
}
spl_autoload_register('auto');
new X();