Re: BC-break in Mail/mail.php? (was: Mail-1.1.3 (stable) Released.)
| From: | Jon Parise | Date: | Thu, 08 Apr 2004 20:16:42 +0000 |
| Subject: | Re: BC-break in Mail/mail.php? (was: Mail-1.1.3 (stable) Released.) | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-1078@lists.php.net to get a copy of this message | ||
On Thu, Apr 08, 2004 at 09:38:15PM +0200, 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!
It's not really a backwards compatibility break. It still returns
'true' on success, as documented. Now, the error value also matches
the documentation.
--
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)