Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65886 invoked from network); 16 Sep 2013 19:02:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2013 19:02:56 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.52 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.52 mail-pa0-f52.google.com Received: from [209.85.220.52] ([209.85.220.52:59202] helo=mail-pa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/31-57385-FD557325 for ; Mon, 16 Sep 2013 15:02:55 -0400 Received: by mail-pa0-f52.google.com with SMTP id kq13so5730689pab.11 for ; Mon, 16 Sep 2013 12:02:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=AQydx8KNAszb+EeZGOz/Z9vJBQtNO9y160t1QxN6Ua8=; b=EFPpgd/xI0Pu9F1qsa5BzaV4OGLETxtUfegCrg05fpxe14k9w5FTXt5HU5buNlO7t2 kHB7kpwAN+MhJ1pgNlSu3+uMdoqyuCJEV6TMQ4Rzg0oY0dSCneb1ZbYniRLexazwIw7R HmKBKwpWmoGjmm7UDfeWwaYiV2NDK+xy8r6g/+Yz0u1P0aUB+9leDA/sRrIVPcRHLB37 JVe4iQ3a8Zsl3TEgXlX0kFD1RIUojS2oFLUs0J5n25c05VZyLOvpaOF2l6ojiIPH9tx3 NMsY9110EI5a8FiBUTpaP9+ZmFiycSufGVVfCQbp4CC7DMkU3va/yEslsfLvkKkqCg49 LNRg== X-Gm-Message-State: ALoCoQmzKwxyAoKvIBbFf/ZnvIT+umOdsKrSExlVLV1Oa3n5p2UJ0lQfGpSNKBDHAFmf/x/XlzYq MIME-Version: 1.0 X-Received: by 10.68.241.6 with SMTP id we6mr3526198pbc.174.1379358172315; Mon, 16 Sep 2013 12:02:52 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.24.33 with HTTP; Mon, 16 Sep 2013 12:02:52 -0700 (PDT) X-Originating-IP: [2620:0:1cfe:18:22c9:d0ff:fe87:295b] In-Reply-To: References: Date: Mon, 16 Sep 2013 12:02:52 -0700 X-Google-Sender-Auth: QYc5cQNnxPb3rKSQqy8EF3K3_yg Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7b33c72ee1111f04e684d9dc Subject: Re: [PHP-DEV] Re: [RFC] Syntax for variadic functions From: pollita@php.net (Sara Golemon) --047d7b33c72ee1111f04e684d9dc Content-Type: text/plain; charset=ISO-8859-1 > > > I'd like to go forward with voting on this. Are there any issues that still > need to be resolved? > > Assuming the RFC as-is represents the current state, I'm +1 on all of it. I'm not a fan of some of the proposed alterations which would translate arrays (a la call_user_func_array()). To clarify, the following output is what I'd expect: function f(...$args) { echo count($args); } f(1,2,3); // 3 f([1,2,3]); // 1 Not "3" in both cases. -Sara --047d7b33c72ee1111f04e684d9dc--