Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95451 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79105 invoked from network); 25 Aug 2016 19:49:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2016 19:49:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.171 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.213.171 mail-yb0-f171.google.com Received: from [209.85.213.171] ([209.85.213.171:34509] helo=mail-yb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/06-34481-CAB4FB75 for ; Thu, 25 Aug 2016 15:49:00 -0400 Received: by mail-yb0-f171.google.com with SMTP id d10so20152742ybi.1 for ; Thu, 25 Aug 2016 12:49:00 -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-transfer-encoding; bh=ouoBUdCVQx6X2drqxPK0CkaOB0BL4RkOFgVZV601ri8=; b=K3lozlezkuBgpBx0FbZhC9X6f6wtH/Ucgnms2guoIJShhKJBDcVADlSvENZE/T4QAs zazICh4Pa4YavOHerHzpQlkd6UodsIOWbiRbqE94YoYDyM3vlQ9D7/MR/iCJ01zTXZYr wKWl5SsltQ0BsfRSkYdAVGpIfju7MmvgFf/2Qz5SkpU4nTuC60swoKvC+5DS81PYQaAt 9fDWo4EBMA6YOMnGM9B33Wc5GejP4Ff3MUM66Fl3HrsAtwMY7kVoKTLKgulyhDHDU/80 3pMUfkFS8Q1jX6E30daW0mHT3Iuw3soqnalfPe/ncaan8/MnyNlpSg3dAD0guv6ytenK VYzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=ouoBUdCVQx6X2drqxPK0CkaOB0BL4RkOFgVZV601ri8=; b=QvvZXfcWcFLSF+TCMP1xCvji6lHVMCWJVlA4hB9Blmk++cW1FbaM257IBL8Yo3tZyX /ASdvxoh5ovWU8Fp8MVTf1ra8MNCQhMplnrVL+jtGZhheIaqG/TF+DS7gZzU0fxNTjx5 HgvZnWKESyhLwzXXOk8v/gJuq0Zyj1NZhlqf+zdP9xf45nzlCYb7FLDoYgLqn5Y15yNR HvksqsgOIBq6J3/5ckIO83NejQr9v2igiOrKlarTu4pVjkctRYz8c86Jsiq5DWQoYCXJ Wgp6fXu6eZEEe9m4MhGZKnbXmY4dgz2dsUWjDfYQQzvK5g9YhIf806JesbE1eE+eABZL 9GKA== X-Gm-Message-State: AEkoouvZKo00vFEgiesvVHcQY8M85k+kFePO3ugY2R3d7SzS2Wk5tipHJMfgqdyAdj8zCPFmFS4wxCohVVuJlw== X-Received: by 10.37.111.11 with SMTP id k11mr7961106ybc.14.1472154538295; Thu, 25 Aug 2016 12:48:58 -0700 (PDT) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.13.193.66 with HTTP; Thu, 25 Aug 2016 12:48:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Aug 2016 13:48:57 -0600 X-Google-Sender-Auth: lwPRvAHn6A9zbW5KgZRiM09rzzo Message-ID: To: Ferenc Kovacs Cc: "Christoph M. Becker" , Julien Pauli , Alexander Lisachenko , Rowan Collins , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] BC break: ReflectionMethod::invoke() expects parameter1 to be object, string given From: levim@php.net (Levi Morrison) On Tue, Aug 23, 2016 at 9:03 AM, Ferenc Kovacs wrote: > On Mon, Aug 22, 2016 at 6:30 PM, Christoph M. Becker > wrote: > >> On 22.08.2016 at 18:00, Julien Pauli wrote: >> >> > I agree this is a BC break and should not stay as-is in source code. >> >> I wonder why we have more than 100 lines of "Backward incompatible >> changes" in the PHP 7.1.0beta3 changelog[1], if BC breaks shouldn't be >> introduced in a minor release. >> > > That's a bit loaded question, and leads to a broken windows situation, bu= t > from my understanding some people read > https://wiki.php.net/rfc/releaseprocess differently: consider some BC > breaks simply bug fixes, or think that we shouldn't stick to absolutes bu= t > consider BC breaks on a case-by-case basis. > personally I think tha > > >> >> > It makes some testsuites fail, that did not fail before ; thus it brea= ks >> things. >> >> An estimated 10% (at least) of my *bugfixes* in GD broke at least one >> PHPT, because the test was broken in the first place. >> > > test failures can be false positive or depending explicitly undefined > behaviors, but they can be a good indicator when looking for BC breaks. > as we can see from the previous mails in this thread there are behavior > changes where the previous behavior was different from what was documente= d > so a bit of a grey area. > > personally I think that we are in general too lenient with allowing BC > breaks in 7.1 (even though that I somehow expected this and was arguing f= or > a longer release cycle for 7.0 or at least having a clear roadmap for the > next major version) and we should be more strict about it otherwise we wi= ll > lose the trust we gained from the userland in the last couple of years wi= th > our release process and versioning. > > > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu I agree. However in this particular instance emitting an E_DEPRECATED like I proposed should be helpful. These people who are passing strings are not getting any behavior out of it - its' completely ignored. Additionally since its an E_DEPRECATED it's highly unlikely to actually break something. What do you think?