Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84403 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 427 invoked from network); 7 Mar 2015 15:52:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 15:52:06 -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 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:36613] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/40-29230-4AE1BF45 for ; Sat, 07 Mar 2015 10:52:05 -0500 Received: by widem10 with SMTP id em10so10128227wid.1 for ; Sat, 07 Mar 2015 07:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=a8KXhbaBVmMfsELn0j/bJfKAf1KKJsy97HDkEfwrrhM=; b=tyZYH5/SzUCnpSLPmH0ez3WbKcnVgEw1nAC/Yv2/uje0YKWnan7vHYy9vI2Rslh74G uAFJUa3acKXrEQ7cVNH09S8ItBiTm7oseDegid9+5gCb7gBmpckvlSs/Z05lhh0F8rAD 5n4Jt19yDAmpi5us8QExni8jmjzQnuizvwIiDjQCv/GJCsEBI4FQ3kiu602hT7qyLFcQ 8FnZQOE/qIEAAVHv8uNa95DL4le4HNuufDyJMKaGhoxTfYB0ORyGHyMn/AqRM7Jcl160 2dYxK8M2sSev6aoeW0bTFISx3O/VEXtaVwVxKB5QX5YnRnerE4zOi2jRVV392lf/r3Es 9yzg== X-Received: by 10.180.87.169 with SMTP id az9mr43672930wib.72.1425743521734; Sat, 07 Mar 2015 07:52:01 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.194.193.5 with HTTP; Sat, 7 Mar 2015 07:51:41 -0800 (PST) Date: Sat, 7 Mar 2015 23:51:41 +0800 X-Google-Sender-Auth: Bzxu7lswpxHA_0al_HbwcxOVnYI Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d04447e232769480510b4c827 Subject: [Discussion] Deprecate function sizeof() From: reeze@php.net (reeze) --f46d04447e232769480510b4c827 Content-Type: text/plain; charset=ISO-8859-1 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? ---- [1] http://php.net/sizeof [2] https://github.com/php/php-src/pull/1161 [3] http://stackoverflow.com/questions/3974385/php-array-count-or-sizeof -- Reeze Xia http://reeze.cn --f46d04447e232769480510b4c827--