Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95433 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93600 invoked from network); 24 Aug 2016 16:45:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2016 16:45:14 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.196 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.213.196 mail-yb0-f196.google.com Received: from [209.85.213.196] ([209.85.213.196:34788] helo=mail-yb0-f196.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/6A-10212-81FCDB75 for ; Wed, 24 Aug 2016 12:45:13 -0400 Received: by mail-yb0-f196.google.com with SMTP id g67so600610ybi.1 for ; Wed, 24 Aug 2016 09:45:12 -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=S3MsS0YANUv7ipcImNPLKjJ1Ya+INdd3UcePyMujcec=; b=bnDfjdor6XiL+MYlYuRsaCAHErQBmIPPi6zQHhbJEFt2aLVz7NKcDq5qnA0I1PtB3c IW+6Dq1Dca4oj1392nyUVBoYazXt0dmlJKk8p0hx3X0s2x1bB4gnWPs9SBkmvczghDSn SlyQg1Ky6g4TKsZX1BRvd6AIY8YjPd/1Ne3gcpN1xlqBIPcMTNQGKBoc5o/AEgS6lAdL aX+ZFaULSXoPnQ4NjFvIA6KrWE8+Ov3yIPw2H2Kb2QlL+aqfvP5EGKZS/dI1D8xiC1Py CYsEEq9aO7h27ik8I96EJXAEVpHsnA0KLN7ddsCtUI0lHlnUPzos+sU4MClGycCY+q4z 9bsA== 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=S3MsS0YANUv7ipcImNPLKjJ1Ya+INdd3UcePyMujcec=; b=j25rNBzvZs+dK23t3XuvtITWyP+2RF59GajNExMOtiVp46pNMnJAmlWlG8GlEjPu3K RfY/7o5885nRI8tEV0mG7ZI2Yh7WX0H1ljKD/Blml0lJd3Q97S71JJMJT56EjCuNKsvw xjhxWiUGc8z59BcBwf9J/wCUhkore4tg0YwRjeMEp47d5gM/VSkvj6ddUaTzAfbT+VVG 3AN+d/Jn8QQd5P8LSL6SDtgzVWPjTLCb5JnBygYuAuuA326Egx/EW5iS47iUMt0kTee4 ecyTW4KJ8Y0dEo+WOUYE6R4uUH0U7ZRREZiGDWAZU6RWJbXT2eDV0L/I18NPJUABNC1g Q7wQ== X-Gm-Message-State: AEkooushgMg1KqhhrG0QOyCWfO9qhScrIFEx5mwcDiDSS1W/DpWAO7IYvAgYNiGqQIskJ3nCVZmDxd/ZqcHUQQ== X-Received: by 10.37.59.11 with SMTP id i11mr3223854yba.75.1472057109545; Wed, 24 Aug 2016 09:45:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.129 with HTTP; Wed, 24 Aug 2016 09:45:08 -0700 (PDT) Received: by 10.129.131.129 with HTTP; Wed, 24 Aug 2016 09:45:08 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Aug 2016 18:45:08 +0200 Message-ID: To: Davey Shafik Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114f3fba1a8911053ad401d1 Subject: Re: [PHP-DEV] Reverting "Too Few Arguments Exception" RFC From: nikita.ppv@gmail.com (Nikita Popov) --001a114f3fba1a8911053ad401d1 Content-Type: text/plain; charset=UTF-8 On Aug 24, 2016 9:55 AM, "Davey Shafik" wrote: > > Hi all, > > 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 RC1 (if > there are changes needed) or we should remove it from 7.1. Also, I would > like someone more experienced to review my patch. > > - Davey 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. Nikita --001a114f3fba1a8911053ad401d1--