Re: Re: Re: [Call for Votes] HTTP_Download

From: Date: Thu, 02 Oct 2003 08:37:26 +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-22300@lists.php.net to get a copy of this message
# paj@pearfr.org / 2003-10-02 10:03:07 +0200: > 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. is what I say above more comprehensible if you replace "I don't care" with "I don't insist on $this = PEAR::raiseError(...)"? I'm not not hooked up to that construction, and IIRC it doesn't work with ZE2 which is another reason against it, but it does work around the lack of exceptions. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html

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