Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128297 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 69D551A00BC for ; Tue, 29 Jul 2025 15:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753804527; bh=RblsFvWQFdvnJ1KOJ/unjKw/908rr1aNt3Nbm/yS8pA=; h=Date:From:To:In-Reply-To:References:Subject:From; b=JpdpMf+gRJpv+KGfGMRIVHQIe2Hn1L+u9zdEsaTrH8Y4lXmiuu54ZDPPEINqE7tDH pnp3WuidwJ8FRG8dKRLsd2b6zx8zdmIcuqlHMRDXPlNxGuICKhMEITYm9JcFQjPOWo yKOAwc/novTtha5mhSoRruiyKisuG3NerlR3Y6a3LL7EgfUX1WyFrUVYgfNEjc8vm9 /Pf/JlUoSGcF7cXLMR3fQkpPw2Z1GjvwaycRwQg2vYWuMoX0UWg3RBuot8KVInnE8G 1do2o/qaPKrQlXPHo4Q3mijhsNRzV54H/eakrvXiSa0GZetppQOEO91CHmSrofAuxF 6FJu4CY9NOLNg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B8B111804B0 for ; Tue, 29 Jul 2025 15:55:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 29 Jul 2025 15:55:26 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id DA1421D00152 for ; Tue, 29 Jul 2025 11:57:08 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Tue, 29 Jul 2025 11:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1753804628; x=1753891028; bh=G7M4foHWr/oPzrSVyT96b UcDGKGLd3jXsHaQgy92omY=; b=3EgXe8Xrdp+MeUC+sDPv1+OImhhdxYtmq52Bq f7Wz0Iw83MATu3S+G07u/4WlFLHn0CvgAwK07M1hzEwrUNSPUPmbi8LRiTR5cq8h IYq0hkHOX7GMii0c+shbw1sHWq87dAptDLKigxv0zEn/ydHigALUk8AJnGZQe/cb dqQFBHJ5isQpnihaJR8nyyU2XoXB/XO6LekJOxbKJAx1uu/tIGOaK1fZjOKCwXvv EKZW5T6lC30xNSuDOUL6wqh0sJXh0vmldb8dHtuUg6Ny4fL/kjuGbxg3fDjldjle JWf5cLfL8BG39Lus5WNn0docotkL5DQh7+2RVQ8I8Bblt4vNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1753804628; x=1753891028; bh=G 7M4foHWr/oPzrSVyT96bUcDGKGLd3jXsHaQgy92omY=; b=IhP2Lr7wRtksq5U3k KZ6JJUJ37mnlD6ZYULanDKl2FvlPQYvyu1b8lETIISWeqJ9MnDoeFCUgogDRn9+m dDgY2hMuCTzSExpbGWCPUgRHNPumcxcYySQ/35JZIGj/3DwH7ZRblDbFUYez/6G3 pHUipOK4M+2HT9CnWGDDRSwdR78CwrfIneCvlMuQQoVHDxWqt0VgiGUR5ShVhtfj /1vNqJ7PYJUFGN0sBeGI62Htsi39EBndm6HxO0oMEaPBghcqF0NNY/uMQ0ysve+r cnaIDw6Qgv1ffYt9EYak9QHhMG/Gofjx9jRVShndnLbobr5O6uZqS01vDT5Zs4Gf 22wBg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdelheegjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfnfgrrhhrhicu ifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqne cuggftrfgrthhtvghrnhepueevvdduhffffffhleeuhedvjeevgfelgeetgefftedufeel heegfedvheegleetnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhgu thgvtghhrdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 69C9E700065; Tue, 29 Jul 2025 11:57:08 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T7b7d29473ae5162b Date: Tue, 29 Jul 2025 10:56:47 -0500 To: "php internals" Message-ID: <8f64b164-b3a6-4006-9d04-c2c09135c7d2@app.fastmail.com> In-Reply-To: <6cf2b42f-8cfd-49a0-bd73-35aedc54873c@app.fastmail.com> References: <6cf2b42f-8cfd-49a0-bd73-35aedc54873c@app.fastmail.com> Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jul 22, 2025, at 3:02 PM, Larry Garfield wrote: > Hi folks. Just a quick update: We've made one small change to the RFC. > Specifically, in order to prevent accidentally calling optional > arguments from callback locations like array_map() or array_find(), a > partial created with foo(?) will ignore any additional arguments passed > to it, and will not pass those through to the underlying function. A > partial that uses foo(?, ...) will pass through whatever it gets. > > This is mainly to avoid passing an array key from those functions to a > callback function that has an optional second parameter, which is not > intended to get a key string. In practice this is what most people > would expect would happen, but we're calling it out explicitly. (I'm > not even sure it's a behavior change from what we had before, in > practice.) > > cf: > https://wiki.php.net/rfc/partial_function_application_v2#extraneous_arguments > > It seems the discussion has quieted down and wasn't particularly > contentious to begin with (whew), so we're just about ready for a vote. > However, Arnaud went on vacation and didn't remember to tell me when > he'd be back. :-) So I'm going to wait a few more days just in case he > has any last minute comments, but start the vote either when he returns > or Monday the 28th, whichever comes first. (That gets the vote > complete before the deadline for 8.5.) > > --Larry Garfield Hi folks. Arnaud and I have decided to hold off on the PFA vote for a while to give time to address late-arriving questions and finish off the implementation. That means it's now pushed to 8.6, and I've updated the RFC accordingly. We're not pausing though, so expect another update soon-ish. Meanwhile, if anyone else wants to weigh in on the trailing args question or repositioning parameters question, now is the time. --Larry Garfield