- register_shutdown_function: documentation ( source)
- trigger_error: documentation ( source)
<?php
class Test
{
function __toString()
{
trigger_error("DFsf", E_USER_ERROR);
throw new Exception;
}
}
register_shutdown_function(function(){
echo 'Hello';
});
throw new Exception("what? happen\n");
echo new Test;