Re: BC-break in Mail/mail.php?

From: Date: Fri, 09 Apr 2004 10:44:58 +0000
Subject: Re: BC-break in Mail/mail.php?
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-1086@lists.php.net to get a copy of this message
Stefan Neufeind wrote:
On 9 Apr 2004 at 12:15, Lukas Smith wrote:
Stefan Neufeind wrote:
On 9 Apr 2004 at 11:46, Lukas Smith wrote:
Stefan Neufeind wrote:
the difference is in Mail/mail.php, in the function "send". It was always documented that a PEAR_Error is returned. But does someone have experience if it really returned a PEAR_Error up to now? To me it seems that in 1.1.2 false was returned - and in 1.1.3 now there is a check against === false which then results in a real PEAR_Error been thrown. Is this a BC-break, though it was always documented differently? Hard to decide, I know. But please comment!
imho code is law .. therefore what you describe sounds like a BC break to me.
Well, as already outlined in the thread: It still returns true upon success. And for all other drivers as well as even in the documentation of Mail/mail.php it was documented that send() returns true or a PEAR_Error. However, it didn't do that up to v1.1.3. So it might be considered a badly needed fix. However, maybe some people always "coded around" this bug? That's why I said it's not simply a BC-break :-((
but the method doesnt return false anymore on error
So what do you propose to do? And how should it have been done differently? I mean, you can't branch a new major release for this, though this would be the only way to handle a BC-break for a stable- version. Very bad situation :-((
I think BC compatibility is more important than consistency. I therefore suggest to hold off from consistency fixes until the next major version comes along. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.pear.qa (#1086) next »