Re: debugging function for possible inclusion in pear
| From: | Dan Allen | Date: | Sat, 15 Jun 2002 10:01:51 +0000 |
| Subject: | Re: debugging function for possible inclusion in pear | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7047@lists.php.net to get a copy of this message | ||
> > Okay, I am making progress on your suggestions. As far as the empty
> > _console variable, get this. You have to initialize as a reference
> >
> > $error =& new Error_Hander();
> > or else it disappears before the destructor gets to it. See if you
> > can figure that one out...might have something to do with PEAR.
> >
It ain't perfect yet guys, but I have a demo for Error_Handler()
now. I know the console works great, but I haven't robustly tested
the e-mail and logger facility (though I know they work to a
degree). You have to be careful with recursive data sets as it can
lead to run away process...still haven't fixed that issue yet, but I
am hoping that we sort of all pitch in to make this thing solid. It
could be a real addition to pear error:
http://mojavelinux.com/forum/viewtopic.php?t=51
Hope you like it.
Dan
--
________________________________________________________________
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
________________________________________________________________
Real programmers don't change their wardrobe too often: there
are no clothes stores that are open at two o'clock in the morning.
________________________________________________________________