Re: Re: [RFC] Reserving More Types in PHP 7
| From: | Kalle Sommer Nielsen | Date: | Fri, 20 Feb 2015 06:13:17 +0000 |
| Subject: | Re: Re: [RFC] Reserving More Types in PHP 7 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83266@lists.php.net to get a copy of this message | ||
2015-02-20 2:36 GMT+01:00 Levi Morrison <levim@php.net>:
> int, integer
> bool, boolean
> true, false
> float, double
I guess we should add 'real' here as well, since we still have the
(real) type cast and is_() type check for consistency:
C:\dev\php-src>php -r "var_dump((real) 42, is_real(13.37));"
float(42)
bool(true)
> string
> null
--
regards,
Kalle Sommer Nielsen
kalle@php.net