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? Link to comment https://forums.phpfreaks.com/topic/92774-customer-error-handler/ 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) Link to comment https://forums.phpfreaks.com/topic/92774-customer-error-handler/#findComment-475383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.