Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93702 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23049 invoked from network); 1 Jun 2016 23:19:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2016 23:19:58 -0000 Authentication-Results: pb1.pair.com header.from=aaron@trowski.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=aaron@trowski.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain trowski.com designates 199.38.81.6 as permitted sender) X-PHP-List-Original-Sender: aaron@trowski.com X-Host-Fingerprint: 199.38.81.6 mercury.negativeion.net Received: from [199.38.81.6] ([199.38.81.6:51297] helo=mercury.negativeion.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/2A-63812-D9D6F475 for ; Wed, 01 Jun 2016 19:19:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mercury.negativeion.net (Postfix) with ESMTP id 2CC993A3490B; Wed, 1 Jun 2016 19:19:55 -0400 (EDT) X-Virus-Scanned: amavisd-new at negativeion.net Received: from mercury.negativeion.net ([127.0.0.1]) by localhost (mercury.negativeion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JvaciAAk5OOE; Wed, 1 Jun 2016 19:19:54 -0400 (EDT) Received: from [10.0.1.3] (unknown [192.119.134.23]) by mercury.negativeion.net (Postfix) with ESMTPSA id D6D963A348FC; Wed, 1 Jun 2016 19:19:54 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) In-Reply-To: <71e88084-27ae-094f-50b8-993202c83501@gmail.com> Date: Wed, 1 Jun 2016 18:19:54 -0500 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <18C0A218-B3C0-4E69-9C03-C2C8C407D2FD@trowski.com> References: <71e88084-27ae-094f-50b8-993202c83501@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.3124) Subject: Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception From: aaron@trowski.com (Aaron Piotrowski) > On Jun 1, 2016, at 3:56 PM, Rowan Collins = wrote: >=20 > On 01/06/2016 19:36, Aaron Piotrowski wrote: >> While this might be considered a BC break, I can't imagine there's an = actual code out there relying on suppressing the warning just to call a = function without enough arguments. I see no problem putting this change = in 7.1. >=20 > I think you're overestimating how much people care about their code = running without warnings. You don't have to suppress anything, just = lazily ignore warnings, or log them to a file you never get round to = reading. It *might* be that most users spot and act on the warnings, but = I'm not sure how we could know that with any confidence. >=20 Perhaps I'm overestimating how much people care about eliminating = warnings, but I doubt many functions work as intended without being = supplied all required arguments. The few situations where code worked as = intended when too few arguments were provided to a function are fragile = and should be fixed. This change will better alert users to those = problems. Aaron Piotrowski