I have set up a function that catches fatal errors. If i add a call to an undefined function the code works fine. It also works when i use exit();, but it does not work if i have any syntax errors like missing semi colon.
register_shutdown_function( "reportFatalError" );
function reportFatalError()
{
echo "error";
}
echo undefinedfuncton(); //works
echo "missing semi colon" //does not work
echo "next line";
How can i get this to work?