Hacker News new | ask | show | jobs
by bluesnowmonkey 5697 days ago
There are several ways of catching uncaught errors and returning reasonable output to the client. First look into set_error_handler and set_exception_handler. Also you can register a shutdown function or set an output buffer callback that looks at error_get_last().