Is there a way to tell PHP to run one last function or somehow override some error handler in case of a fatal error? I have a cron that has a main entry point:
$obj = new obj();
$obj->run();
exit;
Will there be a wrap in an attempt to catch a trick if I do not explicitly throw errors? All I want is PHP to make something as simple as creating a txt file containing a fatal error, or even just creating an empty file called "failed.txt" or something like that.
Thank!
source
share