Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84451 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77018 invoked from network); 9 Mar 2015 03:56:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2015 03:56:41 -0000 Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:35788] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/34-44738-7F91DF45 for ; Sun, 08 Mar 2015 22:56:40 -0500 Received: by wesw55 with SMTP id w55so8440818wes.2 for ; Sun, 08 Mar 2015 20:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=NdnZZCreaP8/3Jaer3qEuVPLGqmml6AAnpY2gAxDaNc=; b=BSTrbZ5Y715E7T4FO/NaS4AnyHSWyh1DX4iIR+Idc8+X0E4qtYZkmzyk6hSIprkErY OKX0JDPf7MhvDoLbO+acHIylhzES7YsiI+AUG1u1Ho0xxXwI4kMWH9osxQRCWJJF2RFd kNFO4H1mso6le66UxuDOZyjKTlp875gyV+oIYLnoNrDE7R29bionkvL+WfHMV7Ynjs3Z aIPkPMB8wWUfWoAp4zA+rQwWNKkpHWIbzbZz9o00uz+ahWfCamT9OrLSBqOWfZGyipXz nQFsNyHNc+PUdfoN4WL8PfdV7rZwhaflTjn14AzpV99UxC/gXGfAYo5MwkSujvEf89lS qSDg== X-Received: by 10.195.13.104 with SMTP id ex8mr52789231wjd.12.1425873397025; Sun, 08 Mar 2015 20:56:37 -0700 (PDT) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.194.58.241 with HTTP; Sun, 8 Mar 2015 20:56:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Mar 2015 11:56:16 +0800 X-Google-Sender-Auth: 1dkg57qdqqVebUblExqmxzGuPa0 Message-ID: To: Kalle Sommer Nielsen Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7bfd09205312330510d305d9 Subject: Re: [PHP-DEV] [Discussion] Deprecate function sizeof() From: reeze@php.net (reeze) --047d7bfd09205312330510d305d9 Content-Type: text/plain; charset=ISO-8859-1 Hi, On 8 March 2015 at 00:41, Kalle Sommer Nielsen wrote: > Hi > > 2015-03-07 16:51 GMT+01:00 reeze : > > 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. > It is a deprecated warning I won't break code I think. This could makes those project more maintainable (new PHP programmer could be easier to maintain the code without surprise), and it will be trivial to fix this. We could move things forward ;-) > > > > -- > regards, > > Kalle Sommer Nielsen > kalle@php.net > -- Reeze Xia http://reeze.cn --047d7bfd09205312330510d305d9--