Jump to content

Simple extension to enhance error handling


apaella

Recommended Posts

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 :D)

 

Have you a sample code of simply rewriting an internal function? (only PHP5, PHP4 go away :D)

 

Thanks all!

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 :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.