Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81818 invoked from network); 21 Sep 2016 18:52:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Sep 2016 18:52:04 -0000 Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:37894] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/5D-04117-3D6D2E75 for ; Wed, 21 Sep 2016 14:52:03 -0400 Received: by mail-wm0-f48.google.com with SMTP id l132so107434433wmf.1 for ; Wed, 21 Sep 2016 11:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=D1D33oHIqHwX+xwBmG6R8R1kBwwDqncr/VxUKiaJE6Y=; b=Lg2lC+b2wlUG6S6z3eFWiqWTN//chcH0qPaB7QEwmBqsNnlclMbCoVxAZK4gAF65+H y4sNeX5ptV+yyzycFwsH8JQfiQRhXJ3w/mStCH0SfKWfGZcRDX5W44X/1vVkjiFPoMU2 m3srGHyIpWGIed92A1l2WV2kkFTcucal5Dr+LKPpTBrIq0T0o6FlUkfhLGabePf7VFAG XeiAF5VVtMt2JqscJPqr2XzbfFxpuQL0VKK6b3gr9Es8EpsX5N+Z1nfwMv9Mgas7LqgV VBU2Kulhirl7EBxvT8fdd2Nt0mMD/x5RrkpJ5Dys9sofv+UR6mGCyWQFcUGSJE0kTxv2 EAKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=D1D33oHIqHwX+xwBmG6R8R1kBwwDqncr/VxUKiaJE6Y=; b=I8+MT5quTCudHnoRuPr7P65lvZZtpPvO5zOaqZUcnoz/rm6dA0UFOpT1p/kP1iPURo 5lDIzJyV9LzwtHCgPKyV/IIjtzZKp+ti/GzFXrFvweNIGuVytJuVnyKSqGHfZR0xD6jO 3u+t4eHpQwpzfCA9vpM6J6xksldiW8hCpFuPE70gXcnxGxu4IVUagg78PlvIz9zLiavd q7mrZHUtSewr5jxvtnqlOISJO0hffHb3Yuh87zdV3tg+v106DnfuxwFPD5E1GsZYl5XY LmyuNAF2E0aAcawdgxlPorFGxixP/HSSuTdje+vUuG57QW7gkm8a77ws05Zcj77mYABf AtqQ== X-Gm-Message-State: AE9vXwO+mXZ0bxCU6g0CxvK8pOg9hQBUPl7wJSFGVjkoJTiXYRT0xGqP2BhyGVM0A3dLjkLHwIy0KBcc6eGB7Q== X-Received: by 10.28.208.199 with SMTP id h190mr4883654wmg.17.1474483920487; Wed, 21 Sep 2016 11:52:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.224.134 with HTTP; Wed, 21 Sep 2016 11:51:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Sep 2016 12:51:59 -0600 Message-ID: To: Jakub Zelenka Cc: Levi Morrison , Nicolas Grekas , internals Content-Type: multipart/alternative; boundary=94eb2c1943484edc24053d090a91 Subject: Re: [PHP-DEV] Fix ReflectionType::__toString() BC break From: derokorian@gmail.com (Ryan Pallas) --94eb2c1943484edc24053d090a91 Content-Type: text/plain; charset=UTF-8 On Wed, Sep 21, 2016 at 12:44 PM, Jakub Zelenka wrote: > Hi, > > On Wed, Sep 21, 2016 at 7:07 PM, Levi Morrison wrote: > >> On Wed, Sep 21, 2016 at 11:13 AM, Nicolas Grekas >> wrote: >> >> To handle this in code written around current __toString seems pretty >> > simple >> > >> > Yes it is, but that's not what we're talking about: >> > BC is about having perfectly fine code working in e.g. 7.0 be still >> working >> > fine on 7.1 *without any change*. >> > >> > Right now, we have red test suites on php7.1rc2. >> > This is the symptom of a BC break, by definition. >> > And the issue is not the existing code we have, but the new one that is >> > changing the behavior of the engine. >> >> This was understood when the decision was made. You seem to not be >> understanding the bigger issue and instead focusing on the BC break >> for a *single minor release, and a dot zero at that*. If we keep the >> BC compat this method is redundant and useless forever. If we fix it >> we break your code for *one single minor release, and a dot zero at >> that*. Which is the bigger disruption? >> >> This is why the decision was made. It is better to have the useful >> functionality from here on out than to preserve BC with a single minor >> release, and a dot-zero at that. >> >> > I'm just wondering, how is it possible that this got changed when the only > RFC mentioning this change got rejected ( https://wiki.php.net/rfc/ > reflectiontypeimprovements )? I don't see any consensus in the later > discussion so unless I missed something, which is quite possible, this > change should not be there in the first place, right? > The best I can find are these messages [1] where it specifically mentions that toString should change even though this was rejected, and it had at least some agreement at the time. [1] http://php-news.ctrl-f5.net/message/php.internals/94452 > > Cheers > > Jakub > > --94eb2c1943484edc24053d090a91--