Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72912 invoked from network); 2 Jun 2016 11:43:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2016 11:43:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.44 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:37659] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/B1-62101-CDB10575 for ; Thu, 02 Jun 2016 07:43:25 -0400 Received: by mail-wm0-f44.google.com with SMTP id z87so66059722wmh.0 for ; Thu, 02 Jun 2016 04:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=l6ajEd7fYLLyl+PaWzdS1BB3bxqLg2gSCTC1e4N6g7c=; b=cKwfDf/KL+R6QEPHNJrrU3FbaqulE4J+hS4hP7EAkqzRS178clW5ToV+ShwZ1o9Tnf 66mRDbysCrxk1/zWy9ux1OtncC+LUUB6BAjU2Cug0pqNp8P4TIupMzOJUIJhW9rXwFK2 eJMTqHxvz4fB2JF4u9LQfU6y3G6tQdppWvr1MMNMgZKYIYr3/5hcL/Hi8XIrHsdi4coX 68eZswIFWdU1gjZai0wFBoKhy4KCKG6Jf3XWJT2q6eM3uHhw+Rifqm0M39xnXXLPJN0y 9/FE1Q2pt5GIbEsTMcqbDmUGKMl5jVxgiD+qC40qA0hQkLv29cEqSGVE7ieyo96a+ghX cbyQ== 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:date :message-id:subject:from:to:cc; bh=l6ajEd7fYLLyl+PaWzdS1BB3bxqLg2gSCTC1e4N6g7c=; b=UvSTisJ+G71YeMfyYpNpK7dwOoFQCeZH/pyWSfhDlb56kXiKWvvARoodMR2W/zYjYG NXme0c+hkBHZ5MrT5oE7QsgcoZ/soXgIXMilwZ33ktjbGwClOIJaaH7VQ/E1dfj9d1RB TPYIX57FiUW1lmiKni9L1q8tO/oFMj49mbBzWQAggZAltI0PV2Xn09fJsB8eiMFURRQw fibsw/Xen5OvPNckiWUJaxrcwy2gVjXle/e8tKWvHK9dE7XXg8Z04+56KrPgFe5eVa0G 25yukTM1bTPSZhbqUPhTG3L36+C0Yp0a3raoCoyT2Fosg5HFItCK1Trdc132I3tz7UOv rOkg== X-Gm-Message-State: ALyK8tLX/fjiqd57ie2EYrYf0GsfiHhIGRfEaPgW4mV+7jELpmO7d/rd9hFhHnqvV+XMVFYbTVhdzj2qdovLxw== MIME-Version: 1.0 X-Received: by 10.28.129.20 with SMTP id c20mr8998765wmd.46.1464867801063; Thu, 02 Jun 2016 04:43:21 -0700 (PDT) Received: by 10.194.122.41 with HTTP; Thu, 2 Jun 2016 04:43:20 -0700 (PDT) X-Originating-IP: [77.11.89.173] In-Reply-To: References: Date: Thu, 2 Jun 2016 13:43:20 +0200 Message-ID: To: PHP internals Cc: Nikita Popov Content-Type: multipart/alternative; boundary=001a11424752ecfce305344a1c83 Subject: Re: [PHP-DEV] [RFC] Replace "Missing argument" warning with "Too few arguments" exception From: kontakt@beberlei.de (Benjamin Eberlei) --001a11424752ecfce305344a1c83 Content-Type: text/plain; charset=UTF-8 On Wed, Jun 1, 2016 at 12:55 PM, Dmitry Stogov wrote: > hi, > > > Please take a look into the proposal. > > > https://wiki.php.net/rfc/too_few_args > > > The RFC is extremely simple (both proposal and implementation) and almost > completely described by the email subject. > > I think, this mini-RFC doesn't need 2-weeks discussion period, so I'm > going to start the vote on next week. > Quick question, I think the error message might be a little confusing asking for "exactly $n" parameters, because it could be a variadic function using func_get_args(), shouldn't the message be? throw Error("Too few arguments to function %s(), 0 passed in %s on line %d and at least %d expected") This only changes the case where the passed arguments are smaller than the required ones or not? This is acceptable BC, but passing more arguments should still not be an error. > > > Thanks. Dmitry. > --001a11424752ecfce305344a1c83--