Re: [RFC] is_countable
| From: | Johannes Schlüter | Date: | Mon, 22 Jan 2018 12:34:43 +0000 |
| Subject: | Re: [RFC] is_countable | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101652@lists.php.net to get a copy of this message | ||
Hi,
On So, 2018-01-21 at 18:01 +0000, Gabriel Caruso wrote:
> After that, I like to propose and discuss a new function for PHP 7.x
> (current 7.3): is_countable.
>
> *RFC*: https://wiki.php.net/rfc/is-countable.
The primary place for this imo should be reflection. If there is high
demand we could also add a shortcut function like proposed (no strong
opinion on this either way from my side)
Of course I notice that the current reflection can't cover all the
cases you want to cover, so maybe it might be interesting to extend
reflection with something which works on all variables/zval and wraps
all the is_* functions.
johannes