Re: cvs: pear /Log Log.php
| From: | Jon Parise | Date: | Fri, 21 Apr 2006 05:28:54 +0000 |
| Subject: | Re: cvs: pear /Log Log.php | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-42305@lists.php.net to get a copy of this message | ||
On Mon, Mar 27, 2006 at 05:05:19PM +0200, Lukas Kahwe Smith wrote:
> Jon Parise wrote:
> >jon Tue Jan 3 04:32:16 2006 UTC
> >
> > Modified files:
> > /pear/Log Log.php
> > Log:
> > When creating the Log instance in factory(), return a proper reference to
> > the object.
> >
> > Bug: 5261
>
> btw .. why dont you raise and return a PEAR Error when the instance
> could not be created? then again .. its probably a BC break to do this
> now ..
That's correct; it would be a backwards compatibility problem.
Furthermore, I don't think returning a PEAR_Error instance would be
very useful because I wouldn't be able to provide much context about
the failure.
--
Jon Parise (jon of php.net) :: The PHP Project (http://www.php.net/)