Re: Re: Silencing @
| From: | Greg Beaver | Date: | Tue, 01 Nov 2005 01:46:34 +0000 |
| Subject: | Re: Re: Silencing @ | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-3208@lists.php.net to get a copy of this message | ||
Alan Knowles wrote:
> Of course the big question you have to ask is:
> Is this an end user error, or a serious program/setup issue.. - in which
> case good ole PHP errors are probably more helpfull than anything you
> can write. (obviously PEAR installer may be a little different, but for
> most PEAR Packages, I suspect the later is the case)
Precisely - sort of :). The code I use is applicable to any class that
uses drivers, as it has no @ (you get the good old php error) but it
will also work if you define your own custom driver without trying to
first include the built-in one. This is how the Log package works, and
also PEAR_PackageFileManager, so it applies to many different packages.
Greg