Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48812 invoked from network); 25 Aug 2016 12:12:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2016 12:12:43 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:57599] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/22-34481-9B0EEB75 for ; Thu, 25 Aug 2016 08:12:42 -0400 Received: from [192.168.2.103] ([79.243.115.246]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MUILK-1bl2jn2Zak-00R4io; Thu, 25 Aug 2016 14:12:37 +0200 To: Nikita Popov , Davey Shafik References: Cc: PHP internals Message-ID: <7cdd89c1-3fe5-3455-2f03-d5f6648d93d1@gmx.de> Date: Thu, 25 Aug 2016 14:12:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:rWsxlzy5W4v+K9KZgP6pqw6K/9aiY+YekjeZUGhe1pQ8usCzkWW A/AwIOEDdzw74wGQHld9WE2KT1+iYvqwtS6WWNgfqza95Yy+uUSJxv0MD2SS4eqVRhIPHs8 5QmmZ0RPnCJ9Iyl69wf9+dFC/YW7LaVrSsVxkOSHKMVYF0CdndI5loBt6qmHKnOa3bN4JZn KuJBp4ejEYxmI0MEXQxeg== X-UI-Out-Filterresults: notjunk:1;V01:K0:8QV44qv9ufI=:yOiObsir8RsYbHHTwegRE9 W+bziAgAWGzP3i85LjzdpSXWYlO6CvOFa71992Hq9icIndc/x6jDPMp49klvKorLtsSWN9DTk cYYy6JvOUHQrEIa0FEWkFb6PeBrsrl8wao52z+dFxaS2Frs+1Y0btsAZAnYM+EBfmHAExSZ/O bxikUdAVaairOeLRqY6qn2Y1Rp5XUDCtn06NiLQXiRPt0RspHGhdDteS6ui56Z9oR6RMIyWp1 X3duEe9P6dhIXHfXte6tQ3sZ1sTHpRm/lWp+vaQnOYTyl2Ga3/47TobBYKwGiE1w+H8yh0e0V ZR3wAlVhoXJu3/vpzXQJf3pGdiFARGu67KNqCS1/Q/BiFOZhemCg52oF1ujhbRmCwfqftdhZF mJJn7ymWVS5cVD+zLK9ar3ex4B3+031r/niRrV4B0qxlLtWKSlnV+XJ3pW/b6Cfg/SKbiEzMI wcBEekIl4cgY3/u0oSFpggkVuf03+OtGJtrpA3OPZisjtNcjgYf06IYRpi9/VxidybGHSbg7x 9G8RafKQ35uaOykEEOLx+1mbFcKSurQss2xI5R9fFFjxmDfyMOi0VxRwJCeDRx9QAqa3vcqFF dD74sFMRVxlLQu51RtwgWOWXT1xgaUprujLVNsm76UgI7Sm+n1tQkOGZTXzKDfgv6MzTkALu3 oHyWg48oXzaZEvJO5lcctWOPeZdPyydQsFM/PqzO+v1uG5Xzs8xMOrRX5NXWHcigUozLFNiAb YIBp9Eexd4SM/tQMqn5t1Qn3HJwgjPruIsb/i3aQ6TdJrW4nJK3QGblpbd78cQYjuJ2+Cu6Wl plZcmlL Subject: Re: [PHP-DEV] Reverting "Too Few Arguments Exception" RFC From: cmbecker69@gmx.de ("Christoph M. Becker") 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 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. > > 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. The RFC has been accepted, so I don't see a reason to revert the respective changes (even though I'm still not happy with this change happening in a minor version). -- Christoph M. Becker