Re: Re: Error Handling

From: Date: Tue, 02 Apr 2002 16:12:00 +0000
Subject: Re: Re: Error Handling
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-91167@lists.php.net to get a copy of this message
The set_error_handler didn't work correctly in that it wouldn't execute except when trigger_error was called, otherwise this would have worked great a week ago when we were trying to implement this. Thats why we went with a error log which was auto-emailed by a timed script. Adam Voigt adam.voigt@cryptocomm.com P.S. I apologize for cross emailing, but I thought it may be applicable to PHP's sourcecode in that there might be a line of C or something in the PHP source distro I could change. On Tue, 02 Apr 2002 18:03:48 +0200, Stefan Livieratos <stefan@icsplus.de> wrote: > Hi there, > > take a look at the first user contributed note on > http://www.php.net/manual/en/function.set-error-handler.php. > > The fifth argument of the custom error handler is the context in which > the error occured. > > Hope that helps. > > Regards > Stefan Livieratos > > P.S.: Please don't crosspost your messages to php.dev. > > Adam Voigt wrote: > > At our web hosting facillity we have several developers (each who recieve a seperate > > email when an error occurs on the site there working on) and we would like to have extra > > data included in the log files which are written (such as the $_POST, $_GET, $_ENV, and > > $_SERVER arrays), this would help us to figure out more precisely why exactly an error > > occured for a particular user. I already looked at the error_append entry which allows you > > to append code to an error message but it appears that does not carry over to the log > > file, > > is there anyway to make all these arrays dump into the error log after each error entry (I > > know there is probably a way to do it with some combination of OR and die(customError()) > > or > > something, but it would be nice if the built in error handling could do it.). > > > > Thanks, > > > > Adam Voigt > > adam.voigt@cryptocomm.com > > > -- > > ICS Plus > Internet Consulting + Services > ============================== > Aeussere Brucker Str. 51 > D-91058 Erlangen > Germany > ============================== > Tel : +49 9131 127733 > Fax : +49 9131 127744 > E-mail : info@icsplus.de > Web : http://www.icsplus.de > ============================== >

« previous php.general (#91167) next »