Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102678 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27224 invoked from network); 9 Jul 2018 20:13:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2018 20:13:54 -0000 Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.73 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.73 outbound2.mail.transip.nl Received: from [149.210.149.73] ([149.210.149.73:46446] helo=outbound2.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/2A-49043-FF1C34B5 for ; Mon, 09 Jul 2018 16:13:53 -0400 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound2.mail.transip.nl (Postfix) with ESMTP id 41Pc3b74n2zYdqg for ; Mon, 9 Jul 2018 22:13:47 +0200 (CEST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 41Pc3Z0tsZz12MpK for ; Mon, 9 Jul 2018 22:13:44 +0200 (CEST) Received: by mail-wr1-f43.google.com with SMTP id s11-v6so12243311wra.13 for ; Mon, 09 Jul 2018 13:13:44 -0700 (PDT) X-Gm-Message-State: APt69E0nPPdJh04Zd8TaA4VqtpBlhQ3D4pSbGtIeDW61YdBe0CBd9d86 +Sy2X4h4yKvKlvPY/g6/4vxBVEv2WYWelJBE1Ek= X-Google-Smtp-Source: AAOMgpfvsd0Z1QScBkIi9F8ak8YtvPUeK39tjL25TzuDePeN4+dg+gC6rVHPbHjAiuwQY25AlKMlZ1A/xpLooRu5qs4= X-Received: by 2002:adf:984e:: with SMTP id v72-v6mr15106517wrb.180.1531167222834; Mon, 09 Jul 2018 13:13:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 9 Jul 2018 21:13:31 +0100 X-Gmail-Original-Message-ID: Message-ID: To: php.net@majkl578.cz Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000068aae9057096a6b4" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1531167226; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=wFETseg3+yu43FLn2GQ8dEdrvFyXlr8qDh6HFhZZpbY=; b=bZKLcFjZWbuuwO3CucgMbSqr//54b86tQGVb2yA09NdH2kSGtW/NxuHapqbK9Pqli8aCUw hbwBSSoMhSeoF9R+olAk5bcEg5ngo4wHELenCp7sf4jsz6clW4Z+J3My5DcUSthiWIRdb8 DznTi2fKvJJphkAX19qS79Nd9bHyTP1MMqi4OkJzrrcBSpWITbAy5uPDQk6E/4emCoqZt2 qwRYX60mM3gezQWiYR2T/D8lnJYtLIte02N7L/tLXK11hhiLYd0Ibt0bDJjz5WESX9a9ll avwbTEhFwEm/E5IaoUo0t7rYFD7y5Lq2SOuja5HvyNQWrcJq66XzIOfyHcjfFw== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] [RFC][Vote] iterable_to_array() and iterable_count() From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --00000000000068aae9057096a6b4 Content-Type: text/plain; charset="UTF-8" On Tue, Jul 3, 2018 at 9:48 PM Michael Moravec wrote: > Hello internals, > > The RFC for adding iterable_to_array() and iterable_count() is now open for > voting: > > https://wiki.php.net/rfc/iterable_to_array-and-iterable_count > > You can vote for each function separately. > > Voting will close on 2018-07-17 12:00 UTC. > > > Thank you, > M. > Hi, I'd like to point out that a cast to array could almost replace the first one-liner example in the RFC, with the exception of the generator case. It may be an issue that (array)$iterator has a different behavior than iterator_to_array($iterable) but that would be a separate discussion. Regards, Pedro --00000000000068aae9057096a6b4--