RE: [PHP-DEV] A different user perspective on scalar type declarations
| From: | François Laupretre | Date: | Fri, 27 Feb 2015 01:32:40 +0000 |
| Subject: | RE: [PHP-DEV] A different user perspective on scalar type declarations | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83948@lists.php.net to get a copy of this message | ||
> De : Lester Caine [mailto:lester@lsces.co.uk]
> FB3.0 is still in development, but adds a bool field for which IS_TRUE
> and IS_FALSE are not a comfortable fit because for any database a field
> can have a value or be null (not set) ... this therefore requires using
> a zval other than IS_TRUE/IS_FALSE to store a boolean value properly!
Can't you consider converting to 'boolean or null', giving three potential values.
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php