Pear error handler.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
condoreye
Forum Newbie
Posts: 2
Joined: Wed Oct 16, 2002 7:51 pm

Pear error handler.

Post 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 -
Post Reply