PHP error handler with callback and error screen support.