Re: Comments on bugs marked bogus

From: Date: Tue, 26 Jul 2005 20:41:33 +0000
Subject: Re: Comments on bugs marked bogus
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38932@lists.php.net to get a copy of this message
Hi, Justin Patrin wrote:
Also, a developer should not write the example you provided. They should be using PEAR::isError().
This approach was actually promoted on this mailing list and there are several prominent packages using it. So unless you are willing to open a *really huge* can of worms I suggest you shut up now.
And I have promoted the use of PEAR::isError() on this list as well and I am willing to open this can of worms.
I agree.
Me too! OK, HTML_Template_Flexy uses is_a($foo, 'PEAR_Error') to check for errors. Lukas' own MDB uses is_a($whatever, 'mdb_common') with the "wrong" case. So the question is: is it easier to invest a *considerable* amount of time into "fixing" the packages to make them usable for stupid one-liner __autoload() or just add a note to the manual stating not to touch PEAR classes in __autoload() at all?

« previous php.pear.dev (#38932) next »