Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71128 invoked from network); 22 Aug 2016 10:11:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2016 10:11:17 -0000 Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.218.41 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.218.41 mail-oi0-f41.google.com Received: from [209.85.218.41] ([209.85.218.41:36326] helo=mail-oi0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/44-35246-4CFCAB75 for ; Mon, 22 Aug 2016 06:11:16 -0400 Received: by mail-oi0-f41.google.com with SMTP id f189so143779933oig.3 for ; Mon, 22 Aug 2016 03:11:16 -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=6Towkbr0zjztkbtyXhrweAy0UGUe5OFGnM5AVVlf2fs=; b=bEpx6HQ3QXE/v/dJJi+F5lRnwn9AtxpI17UYiTpJCvO1gC4Qx4Q1BKVZzIzU0WA0oK 3iXArctKgis33RkD8LVhUHPYmC8kw9Y5Fmjujj5ksiMWfWqKjs4K9Kgd/qINAKjFhlHf atwSxN4FKmasLurZW2AXaH4BzzcvFqDVHfD/2gGBFE2up7Ax5nHzZ8hGPu2fecDahPYl vYmtDpKi4HtDie0AnTFqlsTpnyQxBmNX5+xbIMkONXT95MJy+VTKIU6zbhJNW3252Uk7 jGbiIfq+vlmarY8ngCB6KvUdJ6CQk3kNE0kthnlrSQBnjQB7kRn5k+rw71hUQLjiFlz2 7UUQ== 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=6Towkbr0zjztkbtyXhrweAy0UGUe5OFGnM5AVVlf2fs=; b=KE3sh8wOrRYwvXMTO3zCDvyI/c4tX2iy5vEPyfjYwq9/0BdDMYj1UH8riI2ZmdTWra C782OTNE4awNtWx5ConmGgzJ2g2PYP04IEE1Y7RgPrb4A7It8q4G6UsW7ugfVcKgW5kD wExaV1diagh514Fjy+duxHn6QxE+rag7rIBYm5afW4NxNw3U8FIEXv7weEh/O3lpIRfe 0lxDwne3YRSqY6qr4N4/SFDbQGh3EjiezZlGlcN7y7KMOf8t7kxC5MSr+ct2TH3pFin3 z5Yxxtl2CISwxnCLEfJce7eTZR8ZVynN65/+hYH34JtmJl0L86W8cXyrOZlyPMHnCEau rHcg== X-Gm-Message-State: AEkooutPSifvrbjp349TslBV1hvvD8PkjMl0pegokmW3YviydJZ92OKOBibXbIBwxHNZ51Zlm2u86UQZ68fGE4Wo X-Received: by 10.157.45.52 with SMTP id v49mr11480399ota.50.1471860672051; Mon, 22 Aug 2016 03:11:12 -0700 (PDT) MIME-Version: 1.0 Sender: me@daveyshafik.com Received: by 10.182.40.136 with HTTP; Mon, 22 Aug 2016 03:11:11 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Aug 2016 18:11:11 +0800 X-Google-Sender-Auth: kZZTkOt0-d59GzD--k9-YKgw0zE Message-ID: To: Derick Rethans Cc: "internals@lists.php.net" , Dmitry Stogov Content-Type: multipart/alternative; boundary=001a113d0188845542053aa6441f Subject: Re: [PHP-DEV] Incorrect Argument Count Error From: davey@php.net (Davey Shafik) --001a113d0188845542053aa6441f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Aug 22, 2016 at 5:59 PM, Derick Rethans wrote: > On Fri, 19 Aug 2016, Davey Shafik wrote: > > > b) a huge BC break (stuff that currently throws a warning in > > strict_types mode will now throw an exception, similar BC break as > > we're implementing for userland functions regardless of strict_types) > > IMO, that's not acceptable at all between 7.0 and 7.1 > So=E2=80=A6 option C? Bear in mind, this _only_ affects people who have turned on strict_types, and makes it consistent across the language. If we had implemented type hints internally it would also have errored out in 7.0, but would be a TypeError (which ArgumentCountError extends and therefore it's BC). (FYI, we both voted against this RFC, and I'm not happy about it but trying to at least make it not as bad :P) - Davey --001a113d0188845542053aa6441f--