Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84497 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58582 invoked from network); 10 Mar 2015 03:41:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2015 03:41:51 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.181 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:41834] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/31-51288-EF76EF45 for ; Mon, 09 Mar 2015 22:41:50 -0500 Received: by obcva8 with SMTP id va8so26935903obc.8 for ; Mon, 09 Mar 2015 20:41:47 -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=TzkYQ66lVk5UElnftaS+EWdhNwsecStSjqkP9tX5brk=; b=jAm+qxKizBwHqGS8b4XVqIHBx8HthQ9wbRfSs8kIF+tVsv9q0RxQKKZmE2MEVesNuP k/XeTiT+xa2LjZWgYlyG/z4guMDrPAAsBRWkND59uW5vMl8wTqnQ+K4H5tswvQ8Yf24j EmeCqFiArfhHbq/INSdvtmIT3C72VDMyVtR6/O8VWvAqmxFP2JgOJC01akNjLeBExath dmkXfhecAb/xlp/tUtPmjSilmv+lI9+cPCErPR8+uLAzy8yySlXbUXJCd7MW92qed0ku la893jNtD4YYzT88weeDDWkrsf0HXm+jVP0UXQrtNhNR52lCUxXwre7KDJBF3YKYHOB/ kZdw== X-Received: by 10.60.35.10 with SMTP id d10mr16899992oej.57.1425958907448; Mon, 09 Mar 2015 20:41:47 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.58.2 with HTTP; Mon, 9 Mar 2015 20:41:07 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Mar 2015 12:41:07 +0900 X-Google-Sender-Auth: nbMHqkR5EOpOnY9idBc8pzHGs9E Message-ID: To: Pierre Joye Cc: Xinchen Hui , reeze , Kalle Sommer Nielsen , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01227fce2495060510e6eee9 Subject: Re: [PHP-DEV] [Discussion] Deprecate function sizeof() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e01227fce2495060510e6eee9 Content-Type: text/plain; charset=UTF-8 Hi Pierre and all, On Tue, Mar 10, 2015 at 11:59 AM, Pierre Joye wrote: > 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. There are 2 camps, people who would like to keep procedural API as it is and people who would like to improve/maintain procedural API while there are no separated camps having improved/maintained OO API. It may be time to discuss how we are going to use namespace for internal functions/classes/interfaces to move forward both procedural and OO APIs so that we'll have zero BC API upgrade. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e01227fce2495060510e6eee9--