PHP error handler within phtml parser