Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84317 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72682 invoked from network); 5 Mar 2015 05:28:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 05:28:59 -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.216.177 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qc0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:34770] helo=mail-qc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/21-56703-999E7F45 for ; Thu, 05 Mar 2015 00:28:57 -0500 Received: by qcwr17 with SMTP id r17so41395824qcw.1 for ; Wed, 04 Mar 2015 21:28:54 -0800 (PST) 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=Axz0mO2/vR5+BOD4nAp0ls/4uvkXMxkNxiQcqIY/jIM=; b=OvxcdoPMhHnVCK7oXW/41OZASZXrMh978CW0PdqVFSe1GeSue5XKwLVDDPqIK2fk+p UdhZWMV4rCZHqWV2JPIpC9MqqvscTTg/WAvRT4p4Yq8KymUqxMeG05YIDl/WwKxNcJWu Ikoq6bXWk3yZDN0NujhGymROwvtH0glXwXrr70FxBfokzDGPGUX69HFPe0zIuWpZSbnr 2YKsjCpgYO8Jbzv1zC45NzDQrEHWHiVgjX4AoSDpzFGbUQADdqm86NdBl4S0J6+TjCa5 Q/zXwhra8tb1dE8PFI3Qj7yv8yNWjxFk7W/9L4olayGrb//QvleShScgnsadrvOoUMpB T8mg== X-Received: by 10.140.238.2 with SMTP id j2mr10470863qhc.5.1425533334454; Wed, 04 Mar 2015 21:28:54 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Wed, 4 Mar 2015 21:28:14 -0800 (PST) In-Reply-To: References: <885a29db28bc96b2d3cd2ac96907e39f@mail.gmail.com> Date: Thu, 5 Mar 2015 14:28:14 +0900 X-Google-Sender-Auth: X69bMWq5nvGnrOHgpmgLXBrH9Dk Message-ID: To: Julien Pauli Cc: Patrick ALLAERT , Zeev Suraski , PHP internals Content-Type: multipart/alternative; boundary=001a1135a5140407f5051083d89c Subject: Re: [PHP-DEV] Question/comment about the Array to String conversion RFC From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1135a5140407f5051083d89c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, On Tue, Mar 3, 2015 at 2:30 AM, Julien Pauli wrote: > On Mon, Mar 2, 2015 at 4:10 PM, Patrick ALLAERT > wrote: > > > Le lun. 2 mars 2015 =C3=A0 15:24, Zeev Suraski a =C3=A9= crit : > > > > > All, > > > > > > > > > > > > https://wiki.php.net/rfc/array-to-string (which I voted yes to) > deviates > > > from our guidelines of deprecating features first, and removing them > > > later; It=E2=80=99s addressed in the RFC =E2=80=93 but I=E2=80=99m a= bit worried that this > opens > > > the door to jumping from any sort of notice/warning into errors or > > removed > > > features without any deprecation phase. > > > > > > > > > > > > In comparison, in Nikita=E2=80=99s RFC for removing E_STRICT =E2=80= =93 there aren=E2=80=99t any > > > proposed =E2=80=98jumps=E2=80=99 to E_RECOVERABLE_ERROR that don=E2= =80=99t first go through > > > E_DEPRECATED. > > > > > > > > > > > > Should we not go through this deprecation cycle, even if may feel > anxious > > > to get rid of this behavior? > > > > > > > I'm all for deprecating before it gets removed (especially since I vote= d > > "no" to that). > > > > > Same to me, I voted no because we're gonna break something which is not > "that bad" and turn it to a clear breakage in one step. > I would prefer we E_DEPRACTE before E_ERRORing , we can deprecate in 7.0 > and remove in 7.1 or 7.2 or whatever. > We chose not to have a 5.7 for deprecation purpose only (or not), but thi= s > doesn't mean 7.0 shouldn't deprecate anything IMO. > I had same idea, but I voted yes. Conversion from array to string is a bug should be fixed anyway. There may be code that checks invalid "Array" string, though. I think changing E_NOTICE to E_DEPRECATED/E_STRICT is good idea. E_DEPRECATED/E_STRICT then E_NOTICE/E_WARNING/E_ERROR is better path. Users should be able to catch bugs with E_DEPRECATED/E_STRICT also. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1135a5140407f5051083d89c--