Re: [VOTE] Scalar Type Hints
| From: | Dennis Birkholz | Date: | Thu, 12 Feb 2015 21:50:22 +0000 |
| Subject: | Re: [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82563@lists.php.net to get a copy of this message | ||
Hello François,
> For a set of 'extended' types like 'number', and their matching rules
> against zvals, this may help :
>
> https://wiki.php.net/rfc/dbc#dbc_types_vs_zval_types
I did not follow the DoC-discussion so far but from a quick glance at
the list there are at least cases that need a further look:
1. There is no float (without !) in the list. It should be IS_LONG = yes
(if value does not exceed float boundaries), IS_DOUBLE = yes and
IS_STRING = yes (same as for IS_LONG).
2. callable is missing a check for objects that contain __invoke() which
is also a valid callable.
Greets
Dennis Birkholz