Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128835 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 8C1401A00BC for ; Tue, 14 Oct 2025 13:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1760448593; bh=TOgVQHvqTVvSE38lj4/XIbftD85k/4VKnh/f0xJOoB0=; h=Date:From:To:In-Reply-To:References:Subject:From; b=XRLgIq1ROuLmnFYIPnnhX5X85mFDuq4ya5jD0KccIVUlgoBaRlLHhkLerJOc4NPPB sVLxhO911y9bSK/4iL8AE6Pf27HpSAClH/mVx8lWQ2ftRqcs41DmKXoriMVhZriT4/ VBrVRJwXj13B2qma16voWJrarAYIRWU2aGxsU3L0X35dXemFmu87utfE+DMJOqePjR KyDPGaUWmaEhSqrQVxDtH14aPoINq3dDN2PZ8wmZcCyKoJNJLldkfRx19vATipeuod xWfaFW6g6TuYNDm22Uqb2bPNDk/w6AyLTf0NY8cRR1d3SSVCe+4VqudF4L/A/gexki LkCPueIRziDmQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5467518003E for ; Tue, 14 Oct 2025 13:29:52 +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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) (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, 14 Oct 2025 13:29:51 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 50200140007F for ; Tue, 14 Oct 2025 09:29:46 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Tue, 14 Oct 2025 09:29:46 -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=fm2; t=1760448586; x=1760534986; bh=hlrSFVBDPGLI7UURS9b8n aIksqeV3SE2nsRiZ0xzGFw=; b=T72elBeVJFxof1Za3tm+yw/Ag3eTNEBMO4xeU JgzPIZpUZDz5fjyn5lwyObUTaSU209QvMgD3qLMTzbzBE7xSm1ho/WrBv+MbC87Q YAypWSKoLXAiM2FuIEiAhnbmV4gCc97/QAsXKjIs5xMvl3lDCkWZOILlS+B1M643 6CaYKjIreyTKX5KNrT4lJPw1G8/DfVMpWhvXi4ph2H8bWWTlJhUt5YmQiNKgQuvb ZRR1EAQF34HQLSOSE4nUKRiBgiWT9fkA9eryQT3Af4BiyHdj5jW69j5KbrogiRIn UaRT0vkYL6iuMilaga9sDEvDm3To9Ab6SmIjoV30KbjW6AEFw== 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=fm2; t=1760448586; x=1760534986; bh=h lrSFVBDPGLI7UURS9b8naIksqeV3SE2nsRiZ0xzGFw=; b=ieRkScnJDlSyVlU3j 8fHtLVBB002ACo1v3A4Q7Vj0IAT7VIFML/ivOvuP5uf0fVf8BGS0R5aehQfGLtFf qsh7tCp/4KT1v6WggXA7Nk7C1Aegdab8KijzZ1TAJyNv5JCLBfctJ5GUIuO7ywSM xUgFDJ/upobAR4LIZgRgqsUZmp9qs6RbVixauU2QFY0O488zm9QSTEl3Aufg7bnY ZW2ufh9W+JDxw2sqCzib3LD8BefksvRb+lMsQNRNLXCOO6gNlcXxHvzWbsI6Hu+1 5Lcg9X56nf7uJs9HOeyrT/wDIBPfIMcAqOmQhrimamLfIx71JZ6eoQFbIeUlbBJi 63f/g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduvddtieehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeffieeivdfhvdeguddttdegteeiueegvefhteehfeeffeet udeitdehtdegjeeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghp thhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsh eslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E9EF0700026; Tue, 14 Oct 2025 09:29:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: ATrodGnf_4Xg Date: Tue, 14 Oct 2025 08:29:24 -0500 To: "php internals" Message-ID: <5d215e02-5602-4352-95f2-d3e6116c0c7d@app.fastmail.com> In-Reply-To: <5f3d595367cee8d7506b54a6c5cb3d78@bastelstu.be> References: <13830641-0fb9-4de9-94ed-8873045ef820@app.fastmail.com> <17c4de1b-96bd-424f-b1ed-637cfc961464@app.fastmail.com> <5f3d595367cee8d7506b54a6c5cb3d78@bastelstu.be> Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Mon, Oct 13, 2025, at 4:00 PM, Tim D=C3=BCsterhus wrote: > Hi > > I'll give the RFC another read at a later point, but I wanted to get=20 > something out before I forget: > > Am 2025-10-13 20:23, schrieb Larry Garfield: >>> - How does it interact with `compact()`, specifically: >>>=20 >>> $partial =3D compact(someValue(), ?); >>>=20 >>> Would the `?` be able to capture a variable containing the return=20 >>> value >>> of `someValue()`? >>=20 >> Good question! compact(), extract(), etc. can't actually work with=20 >> PFA, because they operate on the ambient context, which PFA by design=20 >> changes. I've updated the RFC to note three incompatible core=20 >> functions. (The other is func_get_arg()). > > - `get_defined_vars()` should be added to the list (possibly more?). O= r=20 > to make things easier: Just say everything that doesn't already work=20 > with FCC will not work with PFA either. > - What will happen with `assert(?)`? Assert is special in that it=20 > captures the AST at compile time to render it in the error message. So=20 > specifically: > > $x =3D assert(?); > assert(false); // How will the AssertionError look like? > > Best regards > Tim D=C3=BCsterhus I've added assert() and get_defined_vars() to the list, and relabeled it= to be incomplete. I also added a note about FCC and it being the same = list. --Larry Garfield