I tried this:

    set_error_handler('ReportError', E_NOTICE | E_USER_NOTICE);
    set_error_handler('ErrorHandler', E_ALL & ~(E_NOTICE | E_USER_NOTICE));

But only the second one works. How do I have different error handlers for different types of errors?

Edit
Report