Also note that it is your responsibility to die() if necessary.

PHP documentation, set_error_handler

I couldn’t resist posting this. Found it while learning error handling functions for my reference work.