Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66198 invoked from network); 25 Aug 2016 16:37:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2016 16:37:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.220.176 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.220.176 mail-qk0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:34698] helo=mail-qk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/A4-34481-EBE1FB75 for ; Thu, 25 Aug 2016 12:37:19 -0400 Received: by mail-qk0-f176.google.com with SMTP id t7so51127764qkh.1 for ; Thu, 25 Aug 2016 09:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daveyshafik-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=DlKaILFSj3w8LpzX7BBRyFx8NAwn9/Q8Sjnlr9aDaN8=; b=XCvqE88w1TAKpLsgY5EbbQDCLn2ngMtkJeVDfEaQSgubbsVmR1rEE2x5IzVnqQI2ig J81WAGuXBhEGyhTL6rTyzOkzOkPF8qDPAW86cN81aUxTgRnkhDYSIpJ0uCvZWZi620sY HIcro0NDKnDe7ziVem7yO7HqMFs5rh/rjXTr/wJUAo3V3hf5sL2A8xx8tvlGQSDIKdZK w0MNV8hg2AE9HzHqO0cRtmcN1V7TUMmvXLNyGW26YVYrKfNh/v4WsOEvKxMVqqFT9Esu XKChL4NhhyOqVyruEZx6VfQBpXBfb7Vp6v5+/2RM2QVcCAf1AytdBHw3afFDd48z6AiO 7kHA== 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; bh=DlKaILFSj3w8LpzX7BBRyFx8NAwn9/Q8Sjnlr9aDaN8=; b=Oln4PYMaJ57P4YiJ9ugCsPGMA2CwUHNwWLeqvkMJ34dOsuznZz9yKyM3M+RoOirWqT j/ZcZxb11Y4U8PlaPHkYczGNDZV6UqZTaJ7i2P4CJRehZ9auCVyIud5X2k5y305c3TyG 3R5EGehQ/UGRPm1is9OGDgCgGg2vMBWQkmaFckegahqkbKKZzYxZ0u3SwbPkXCaLTVCH LVEtgg7bSZ+f7YbaaGQfASBsC71aAT4l4PPGsmYvEDq/X58CrgIkAtaXGa39dMdEnpN/ Rgb+lHZckQ8VgoiTalLwR/6pDLz3RiOtXTwHBC3LOskvKxLuNiWp8HdzhEB05fuw96qF LaJg== X-Gm-Message-State: AE9vXwP359D0XF/7+P440XMCdQGydVPIn15WU3n9fdkoZGKgTlU494A4faoF7rtdt58G/RHxOud2r3z1NFanHQII X-Received: by 10.55.156.135 with SMTP id f129mr11444208qke.160.1472143035987; Thu, 25 Aug 2016 09:37:15 -0700 (PDT) MIME-Version: 1.0 Sender: me@daveyshafik.com Received: by 10.237.55.138 with HTTP; Thu, 25 Aug 2016 09:37:15 -0700 (PDT) In-Reply-To: <7cdd89c1-3fe5-3455-2f03-d5f6648d93d1@gmx.de> References: <7cdd89c1-3fe5-3455-2f03-d5f6648d93d1@gmx.de> Date: Fri, 26 Aug 2016 00:37:15 +0800 X-Google-Sender-Auth: u7BKVdfKB1B6Ul-29Wr9ucHVSyI Message-ID: To: "Christoph M. Becker" Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=94eb2c07778ab8328b053ae802a4 Subject: Re: [PHP-DEV] Reverting "Too Few Arguments Exception" RFC From: davey@php.net (Davey Shafik) --94eb2c07778ab8328b053ae802a4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Aug 25, 2016 at 8:12 PM, Christoph M. Becker wrote: > On 24.08.2016 at 18:45, Nikita Popov wrote: > > > On Aug 24, 2016 9:55 AM, "Davey Shafik" wrote: > >> > >> Given this thread: http://externals.io/thread/233 > >> > >> I'm not happy with the state of this going into RC1 next week, and > without > >> changes (such as the patch I provided), I would like to revert this > change > >> and leave it for 7.2. > >> > >> My patch will _retain_ BC for internal functions with non strict_types > >> (except for the error message, which can be reconciled), and for > functions > >> that previously threw a TypeError, ArgumentCountError is a subclass so > BC > >> is preserved there also. > >> > >> The issue is that the array functions that do this argument count > checking > >> themselves and still issue a warning, regardless of strict_types. > >> > >> We can leave the original behavior for array functions, but they then > >> differ from other internals functions. > >> > >> It is a BC break for userland functions (as per the RFC), throwing an > >> ArgumentCountError regardless of strict_types. > >> > >> At this point, we _must_ come to consensus by Monday to get it into RC= 1 > > (if > >> there are changes needed) or we should remove it from 7.1. Also, I wou= ld > >> like someone more experienced to review my patch. > > > > I have some trouble understanding what the issue is here. The mentioned > RFC > > affects only userland functions, so the non-standard behavior of some > array > > functions shouldn't matter. > > > > Personally I am entirely indifferent as to what exception gets thrown > when > > too little arguments are passed -- this is a type of error that should > not > > be caught by anything but catch-all handlers. > > > > Inability to provide a more specific exception should not be a blocker > for > > this, especially as this is beyond the scope of the original RFC. > > Indeed, the RFC explicitly claims: > > | Behavior of internal functions is not going to be changed. > This is correct for functions that had the correct behavior before (everything but array functions). I can remove that part of the change =E2=80=94 but if we're going to change= it, doing in 7.1 rather than > 7.1 would be best. - Davey --94eb2c07778ab8328b053ae802a4--