I need to be able to trigger a fatal error in PHP 7 that is not thrown as an exception.
According to the PHP docs, most of the fatal errors have been converted to exceptions. However, I can't find any docs on which ones were and were not converted.
My Question: What is something I can do in PHP to trigger one of the fatal errors that has not been converted to an exception?
Reason: I am developing a universal error handler for an API based application. I need a test case to prove it will work as I say it does.
try { goto b; } catch(Exception $e) { var_dump($e); }- Yes you can catch Exceptions, but no fatal errors.Triggering_E_ERROR_for_testing_purposes(). This now triggers an exception, so it would be good to find an example that triggers a trueE_ERRORerror.