Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84495 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54227 invoked from network); 10 Mar 2015 02:59:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2015 02:59:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.44 mail-la0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:36180] helo=mail-la0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/70-51288-AFD5EF45 for ; Mon, 09 Mar 2015 21:59:07 -0500 Received: by labgd6 with SMTP id gd6so28171090lab.3 for ; Mon, 09 Mar 2015 19:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=g56vDM/h5L2pDJDOfWaTKV+itxBv0OT1L0xkZX96GlM=; b=u510hYigFR+oiUyyrMLjQ7Ag8vM8R8UD/+56UthSmqJZCBMh96sfn74Aruf0BKshBG yotQloOwkSjxmZcPwbd7oszNRmBm+Ycq556sQXRs5ByMlMwKoSF4BRPVh8gv6dCgk23D TptMLaKqWPINP3x+1CrllKoGW7TsK4Rpy8XqrSXkwq9sOPd383bj6z49DpNKEoyfTYG9 Dhos/YM/O3+aAzMhkM9/W8cKMWFs8fC/UazK58g59iQLiiBDjrWwM9T8beCVc8S7QZCb JwDFgzJEQlsU9emEKiQSAvqNfgCMZlBUXJrRejrfkd1FswQNFBFpxNmSnTpK1xZzWSIw zN3A== MIME-Version: 1.0 X-Received: by 10.152.120.134 with SMTP id lc6mr28062964lab.72.1425956342828; Mon, 09 Mar 2015 19:59:02 -0700 (PDT) Received: by 10.112.181.41 with HTTP; Mon, 9 Mar 2015 19:59:02 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Mar 2015 13:59:02 +1100 Message-ID: To: Xinchen Hui Cc: Yasuo Ohgaki , reeze , Kalle Sommer Nielsen , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [Discussion] Deprecate function sizeof() From: pierre.php@gmail.com (Pierre Joye) On Tue, Mar 10, 2015 at 1:48 PM, Xinchen Hui wrote: > Hey: > > On Tue, Mar 10, 2015 at 10:07 AM, Yasuo Ohgaki wrote: >> Hi Reeze, >> >> On Mon, Mar 9, 2015 at 12:56 PM, reeze wrote: >> >>> 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 ;-) >>> >> >> It's possible option for confusing APIs. >> If sizeof() is kept at least until PHP8 or PHP9, I'll vote yes for this. > We just removed all DEPRECATED functions... we did not remove functions as far as I can tell. Some extension at best. > then you want to brings new :< > > anyway, I'd prefer don't do it. especially with little gain. Agreed And generally speaking, we should really think again about this flag, it has been proven to be a mess at best, or useless at worst. -- Pierre @pierrejoye | http://www.libgd.org