I wrote an error handler to handle different kind of errors in php(even parse errors etc.).
Question:
As I now can detect an errortype(the constant) it is necessary to identify which errors I should allow or not and in which case do a gentle shutdown. If I look at http://www.php.net/manual/en/errorfunc.constants.php I see all the different constants for different kind of errors.
The question is:
1)Is there some kind of relation between these constants for error handling. Lets say above a level I know that I dont want to print the error on my screen etc? Or do I have to set this manually for every error-constant(seems like it)?
2) How to provoke every error on the screen example without using trigger_error() or user_error()? Is there some kind of list to produce those errors and which ones I can produce with code?
Cheers and thanks a lot for answers.