Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10556 invoked from network); 22 Sep 2016 00:51:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2016 00:51:35 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.44 mail-vk0-f44.google.com Received: from [209.85.213.44] ([209.85.213.44:36518] helo=mail-vk0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/91-01233-61B23E75 for ; Wed, 21 Sep 2016 20:51:34 -0400 Received: by mail-vk0-f44.google.com with SMTP id a63so5333408vke.3 for ; Wed, 21 Sep 2016 17:51:34 -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=RSTY1xJf/LRTSwRy0ldPuoyKPGspR8Yg0CYxbvxeGuo=; b=l2SGkOoeTs/TYXlgbWEnD+aZTqTnxdSa0sRYIOJgfhqQIPjgrO4hFnnsHu8vBSpoex n2D6EsUUp/zeTKiPjtPxAsEmH2boqQt/PjQuDc9F+auXbS/GuTN4Cusatz8QG27DolYD 4tImkWO0Mu4WU//VdsvNmNNBLpCI93WziCTR0+FxyiPhGkdUMjK+6yxWIyh1cu/qoXLz QYp6WNnMBiyO8eH7ETsM7F2EhwiT8Fpg53OUYItbgvVqQR62HdFApLY0cE9dje1+BPpZ CsEx6Qw6F3L9eq/t/kH/4is+lYU/wzwqUhLKHZawKLB0O44qyGjmmC3FWy9cm9LAkw0K GTVQ== 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=RSTY1xJf/LRTSwRy0ldPuoyKPGspR8Yg0CYxbvxeGuo=; b=UgercgP1AVYLJAvjJXMKQGl++Tw0HwerGJ9vhON87ICF6JoNqrhJ6sHaeApvm3jhVn aruaXlmYg/RldJqD0PBaAhP/BdBPMk4VVDyuTDodIzfC+3fmaUkot5yAR28/VOAugg77 1g9Ngfh5xkw2Wi/97gkw79ELlLkvAZv8Tdujkkvjq9kf+kVzY/XgZjVE3eD9pB/IIoEK /VnKw8aiy6hXOnrPPdZrCCxZprOG+Mh+WpBX8FfaGrC/sQMeIEHGJVHySwc8bH/jrhuW o3O7z9mIqhsCYv2bs+nBE5GVtm8fVTHLrSEVlGlYQ8CtiotLdeGf2yNS4eHUgHvFfPGg XW9A== X-Gm-Message-State: AE9vXwNIDpgx3Rntb19eBxaETJMMJKYtcFnQ7ULsk1IrhlcH6/o/NizNZ7w7carUB3rzG3nZqPbzxT0MUmYYmg== X-Received: by 10.31.231.132 with SMTP id e126mr641915vkh.149.1474505490607; Wed, 21 Sep 2016 17:51:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.81.178 with HTTP; Wed, 21 Sep 2016 17:51:29 -0700 (PDT) Received: by 10.176.81.178 with HTTP; Wed, 21 Sep 2016 17:51:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Sep 2016 07:51:29 +0700 Message-ID: To: Levi Morrison Cc: PHP internals , Nicolas Grekas , Ryan Pallas Content-Type: multipart/alternative; boundary=94eb2c092852fcb4c3053d0e0f69 Subject: Re: [PHP-DEV] Fix ReflectionType::__toString() BC break From: pierre.php@gmail.com (Pierre Joye) --94eb2c092852fcb4c3053d0e0f69 Content-Type: text/plain; charset=UTF-8 On Sep 22, 2016 1:07 AM, "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, Which does not allow BC breaks but for extreme cases. I do not consider this case as extreme, at all. I share Nicolas concerns here. This is the kind of changes making the migration path harder than it should without a strong reason behind it. I agree with Nikita but it is something that can be solved using the depreciation flag and then handle in the next major. > 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? Obviously the sooner. And what is the next BC breaks for 7.2/3/4? This is exactly why we introduce the no BC break rule. In this case it is even more clear as one can use getName if desired to support 7.1+ only, which I suppose is most likely not the case for a large majority of users. --94eb2c092852fcb4c3053d0e0f69--