Re: [Discussion] Deprecate function sizeof()
| From: | Kalle Sommer Nielsen | Date: | Sat, 07 Mar 2015 16:41:46 +0000 |
| Subject: | Re: [Discussion] Deprecate function sizeof() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84406@lists.php.net to get a copy of this message | ||
Hi
2015-03-07 16:51 GMT+01:00 reeze <reeze@php.net>:
> Hi internals,
>
> I'd like to deprecate function: sizeof() [1][2], which is an alias of
> count(). some people
> expect it return the memory size of the variable.
>
> The doc page's[1] user contributed notes indicate that too.
>
> What do you think?
'm a big -1 on this, while I know it returns the memory size in a C
perspective, I think it makes perfect sense to remain an alias, it
would break lots of applications for a very tiny to nothing gain.
--
regards,
Kalle Sommer Nielsen
kalle@php.net