Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26390 invoked from network); 28 Aug 2013 20:16:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2013 20:16:00 -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.214.177 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.177 mail-ob0-f177.google.com Received: from [209.85.214.177] ([209.85.214.177:37476] helo=mail-ob0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/95-33204-E7A5E125 for ; Wed, 28 Aug 2013 16:15:59 -0400 Received: by mail-ob0-f177.google.com with SMTP id f8so7249721obp.36 for ; Wed, 28 Aug 2013 13:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+OZsaQAAYgi5WPtc5Iyk/K0Lex93p2C9ru/44+U0r3s=; b=EXtJ9GvtoTQkgKJMzvRlVTcbnPNMICDVb5pKImCo6z8fgiJgloreiB8GXBtSFJSwxL Oy13UzKCYqluNs6ky2Cq/WB6zA18i6U7QvWGLNVAUjsw5Qz04rsxjHCY4zY1xwSwsTTJ DmR6NhagnNzW2uVanUSM40bpXH6GeIlgH3+SYHS3aH2GS7OsOBi1E6ZAkIVBrSefwneO NeHgyVUSi4iTxsxjrVpobpFMiNMS7Uucg2jk16x9wUxfBMBEkotS+TEu7dSfJ3PozVP5 YBflNjpjYPFUSoEpjQABhXSgbtLANsZdz0e5Out0R6dHFvGXvs7ZKsl+Dk8MZuF7332z SaOQ== MIME-Version: 1.0 X-Received: by 10.182.87.170 with SMTP id az10mr7946733obb.10.1377720956341; Wed, 28 Aug 2013 13:15:56 -0700 (PDT) Received: by 10.182.98.8 with HTTP; Wed, 28 Aug 2013 13:15:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 22:15:56 +0200 Message-ID: To: Matthew Leverton Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0111bcfa33d2ee04e507a8ac Subject: Re: [PHP-DEV] [RFC] Syntax for variadic functions From: nikita.ppv@gmail.com (Nikita Popov) --089e0111bcfa33d2ee04e507a8ac Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 28, 2013 at 9:27 PM, Matthew Leverton wrote: > Would any functions get deprecated as a result of this? e.g., > func_get_args() > Nope, func_get_args() etc stay. This is now mentioned in https://wiki.php.net/rfc/variadics#userland. > I assume it's a syntax error to do function fn(...$foo, $bar) or > function fn(...$foo, ...$bar) > Correct. This is now mentioned in https://wiki.php.net/rfc/variadics#syntactic_restrictions. > I assume that function fn($a, $b = null, ...$c) is possible, and the > only way to populate $c is to call fn with three or more parameters. > That's also correct :) Nikita --089e0111bcfa33d2ee04e507a8ac--