Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93688 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90744 invoked from network); 1 Jun 2016 18:45:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2016 18:45:03 -0000 Received: from [127.0.0.1] ([127.0.0.1:19828]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 8A/B4-63812-F2D2F475 for ; Wed, 01 Jun 2016 14:45:03 -0400 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:50811] helo=mercury.negativeion.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/B4-63812-42B2F475 for ; Wed, 01 Jun 2016 14:36:21 -0400 Received: from localhost (localhost [127.0.0.1]) by mercury.negativeion.net (Postfix) with ESMTP id B51923A321DE for ; Wed, 1 Jun 2016 14:36:17 -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 spsofJj9h5Vc for ; Wed, 1 Jun 2016 14:36:17 -0400 (EDT) Received: from [10.0.1.3] (unknown [192.119.134.23]) by mercury.negativeion.net (Postfix) with ESMTPSA id 539453A321D1 for ; Wed, 1 Jun 2016 14:36:17 -0400 (EDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) In-Reply-To: Date: Wed, 1 Jun 2016 13:36:10 -0500 Content-Transfer-Encoding: quoted-printable Message-ID: References: To: PHP internals 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) >=20 > On Jun 1, 2016, at 5:55 AM, Dmitry Stogov wrote: >=20 > hi, >=20 >=20 > Please take a look into the proposal. >=20 >=20 > https://wiki.php.net/rfc/too_few_args >=20 >=20 > The RFC is extremely simple (both proposal and implementation) and = almost completely described by the email subject. >=20 > I think, this mini-RFC doesn't need 2-weeks discussion period, so I'm = going to start the vote on next week. >=20 >=20 > Thanks. Dmitry. +1 on this change. IMO, this is one of the few remaining unusual PHP = behaviors that exists for no obvious reason. A function should not be = called if too few arguments are provided. 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. Aaron Piotrowski=