Re: [Discussion] Deprecate function sizeof()

From: Date: Mon, 09 Mar 2015 03:57:21 +0000
Subject: Re: [Discussion] Deprecate function sizeof()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-84452@lists.php.net to get a copy of this message
On 8 March 2015 at 09:39, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > Hi all, > > On Sun, Mar 8, 2015 at 5:41 AM, Stanislav Malyshev <smalyshev@gmail.com> > wrote: > >> > 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. >> >> Why? So, some people are wrong, why we need to mess with the language to >> accommodate them? >> I don't think it is a good idea. > > > The same opinion. Unless there are good enough reasons, these aliases > should be kept. If "Consistent function names" RFC passes, aliases will be > Yes, I think so, it didn't remove the alias, but propose use use count() instead. > listed in main function page only. It may reduce confusions hopefully. > That might helps. > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > -- Reeze Xia http://reeze.cn

« previous php.internals (#84452) next »