Page 1 of 1

Pear error handler.

Posted: Sat Oct 19, 2002 3:11 am
by condoreye
Hi,

I am finding it hard to get the grasp with PEAR_Error. Sometimes the MANUAL's or DOC's are not enough. I think there is no good examples or tutorials on how to use PEAR_Error.

A look at the PEAR.php made some sense after all.

Anyway, my goal is to keep a record of all errors occured.
I want to save them into TXT, XML or DB.

1. Is this how I shold do it:

Code: Select all

<? PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'SaveError'); ?>
2. Do I have to use

Code: Select all

<? error_reporting(E_ALL); ?>
when dealing with PEAR_Error.

3. Does pear catch the Fatal errors? I remember there was a lack of catching fatal errors in PHP.

thanks,

- chill -