Re: pear error handling

From: Date: Sun, 29 Dec 2002 08:14:10 +0000
Subject: Re: pear error handling
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3101@lists.php.net to get a copy of this message
I think that you might be missing something there. The callback function has to be of a form similar to the one used w/ set_error_handler() (see example there). The method you refer for the PEAR_Error object will not give you back anything you did not put there. See the code for getDebugInfo() in the PEAR_Error class, and you will notice it calls getUserInfo() which returns the $userinfo parameter you passed to the raiseError() method when generating an error object. If I did not understood what you meant, some code or more details might help us help you. --- electroteque <daniel@electroteque.org> wrote: > PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'handle_pear_error'); > > $error_obj->getDebugInfo() , using this does not return the actual line > where the error is > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.pear.general (#3101) next »