Re: BC-break in Mail/mail.php?
| From: | Klaus Guenther | Date: | Fri, 09 Apr 2004 21:35:01 +0000 |
| Subject: | Re: BC-break in Mail/mail.php? | ||
| References: | 1 2 3 4 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-1090@lists.php.net to get a copy of this message | ||
From: "Jon Parise" <jon@php.net>
> On Fri, Apr 09, 2004 at 12:44:58PM +0200, Lukas Smith wrote:
>
> > 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.
>
> I don't agree here. The problem made Mail::send() return different
> values based on what driver was instantiated.
To be honest, I've not used the Mail error handling much. Perhaps because
I've been using it in non-critical applications. But can bet I now will. And
on top of that, if I were a user, I'd be very happy to fix my workarounds.
Especially if I had to provide a secondary error catching implementation if
I use the "mail" driver. It would probably be the matter of fixing a
centrally included function or a conditional statement.
Of course, if I'm not interested in a portable implementation, which in my
case is rare, I might be upset that I have to replace a few lines of code.
But who cares? I prefer having the bugs fixed over maintaining a strict BC.
However, for my packages I'm going to provide BC-compatible methods wherever
possible.
> To that end, we can technically view all bug fixes as backaeds
> compatibility breaks, because "users may have coded workarounds for
> them".
I tend to agree. However, changes like Alexey proposed for ITX were
non-trivial, even if they fixed a number of bugs. There was sufficient
difference between them and the version of ITX he was fixing that it most
certainly was a BC break.
Klaus