If for some reason your page doesn't display the error on screen in a usable way, you can always write your own error handler function that dumps it into a logfile, sends an email or whatever.
See set_error_handler() and keep in mind the 'magical' constants like __LINE__, __FILE__, __FUNCTION__ and __CLASS__.