I have an program which is generating pdf reports with cron job. now sometimes fatal error is coming and i am trying to handle that with try catch block
$pdfcalass->display();
$pdfcalass->Output("$filename",'F');
i need to handle the fatal error generating in calling two function. i have tried this
register_shutdown_function('shutdownFunction',$request_id);
$pdfcalass->display();
$pdfcalass->Output("$filename",'F');
But Not working