Re: BC question on MDB
| From: | Justin Patrin | Date: | Wed, 10 Dec 2003 16:53:25 +0000 |
| Subject: | Re: BC question on MDB | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24336@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
Hi, I just noticed that the convert methods in MDB for boolean values return 0 and 1 instead of false and true. Would fixing that be a bug fix or a BC break? Its been like that forever. Finally should I even care if it's a 0/1 instead of false/true? 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 07Well, that means you *cannot* use === and !== when checking for false and true from them. If you always remember that and simply treat them like they were true and false, you'll be fine. (if($bool) and if($bool == false)) -- paperCrane <Justin Patrin>