Re: [RFC] Counting of non-countable objects
| From: | Leigh | Date: | Tue, 11 Oct 2016 13:36:24 +0000 |
| Subject: | Re: [RFC] Counting of non-countable objects | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96317@lists.php.net to get a copy of this message | ||
On 11 October 2016 at 10:49, Craig Duncan <php@duncanc.co.uk> wrote:
> I've updated the RFC now to take the deprecation route, and included
> counting scalars:
>
> https://wiki.php.net/rfc/counting_non_countables
>
> The only remaining issue is what to do about handling *count(null)*
> I think this should be deprecated too, but as it's the only case that
> returns zero I wasn't sure whether other folk felt differently?
I'd agree that count(null) has no real benefit, and is probably an error.