Re: Re: Re: [Call for Votes] HTTP_Download
| From: | Pierre-Alain Joye | Date: | Thu, 02 Oct 2003 08:03:07 +0000 |
| Subject: | Re: Re: Re: [Call for Votes] HTTP_Download | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22299@lists.php.net to get a copy of this message | ||
On Thu, 2 Oct 2003 09:46:32 +0200
Roman Neuhauser <neuhauser@bellavista.cz> wrote:
> I don't care as long as there is a way for the constructor to
> raise an error. Not that it would matter in the case we're talking
> about, where the condition can be detected outside the object, but
> there are cases where the ability to detect a problem is limited
> to the instance.
I do not agree. This is ugly.
You should use another method to be called statically and return either
a PEAR_Error object or an object of the class itself.
pierre