Cardale Posted February 24, 2008 Share Posted February 24, 2008 I wanted to use my class to handle errors, but when I put my custom function in set_error_handler($ERROR->TEST); it doesn't work. How do I use my class function and set error handler? Quote Link to comment Share on other sites More sharing options...
KrisNz Posted February 24, 2008 Share Posted February 24, 2008 It needs to be something like set_error_handler(array("Error","Test")); //Error is the Class, Test - the entry point (must be a static method) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.