I've been using on my site so far the very practical errror raising / error flagging function set_error_handler() as this : trigger_error("You shouldn't do that !", E_USER_ERROR);
However as unique monochrome display of error on the top of the page is satisfactory to the graphically insensitive coder that I am, it's unacceptable and confusing for the average user so I've put in my page a stylized box for the error when they happen but in order to block the default behavior, it seems I'm bound to writing a error handler with set_error_handler()
I'm only interested in catching E_USER_ERROR and would like to keep the default behavior for the other errors, I like the fact that you can tweak the minimum level of error to display through php_flag and I think this won't be available if I use a custom handler.
So am I stuck between the choices of having to customize all the errors or none at all of there's a way to use the default handler for some and custom for others ? If it's none, I guess I'll have to resort in putting the error messages in a variable and look for it in the error reserved space.
Thank you for your help ! 🙂