I gave a talk on Dealing with Errors at the PHP Unconference 2011 in Manchester, and notes were requested. So these posts cover the content of the talk, and more besides. This one covers suppressed errors, debug backtraces and multiple error handlers.
This is the 2nd time I’ve booked tickets through http://www.amiando.com/, an on-line ticket system. They have a system where you can embed a widget in the events organisers website, so the whole order happens on their website. This creates problems.
I’ve seen several tutorials on catching PHP errors that only mention how to catch one type of error – so here is a quick post with details of how to catch more.