apaella Posted January 21, 2009 Share Posted January 21, 2009 Hi all, I'm trying to handle exception and logging in different ways than simple file logging. I'm looking into xdebug that have a error handling replacement but is too much complicate (I'm just a beginner ) Have you a sample code of simply rewriting an internal function? (only PHP5, PHP4 go away ) Thanks all! Link to comment https://forums.phpfreaks.com/topic/141790-simple-extension-to-enhance-error-handling/ Share on other sites More sharing options...
Mchl Posted January 21, 2009 Share Posted January 21, 2009 Have you tried set_error_handler ? Link to comment https://forums.phpfreaks.com/topic/141790-simple-extension-to-enhance-error-handling/#findComment-742381 Share on other sites More sharing options...
apaella Posted January 21, 2009 Author Share Posted January 21, 2009 Have you tried set_error_handler ? This function can be overrided by php scripts. I wanto to replace the internal php function (like xdebug) to do "my stuffs" and then call the default error handler (by php or overrided by user) I'm looking into the xdebug code but is hard to cut down unnecessary things Link to comment https://forums.phpfreaks.com/topic/141790-simple-extension-to-enhance-error-handling/#findComment-742711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.