Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129633 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 46DFE1A00BC for ; Wed, 17 Dec 2025 15:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1765985220; bh=AIIKvH1se5+vGHkrQMEIF13LjIj6fwO9t/gTwS9krC4=; h=Date:From:To:In-Reply-To:References:Subject:From; b=KZHemMTH1POn3aQ8VdE/d2mqyZXFwtUri5SR7E/fOuSovScQ3hEG+xwP0OKEz6yGm wzSca3G9OA6i/QHono98MrYli27JQf7WdmKacaQESOnaa4bjyHqVMao1WbsTcmAJVA nK+4MnTH0VRKUDnQG4La7e/Us6TwnuHnSeuFhxEkhtdj54W8bK0jBIOje6ecxlJVXA GXRjYV2Ezt4iqpSSJ9TXlVv4EZu2I8qFo9LYHSKE/ddCUBORqThAro9GZpbr+rx+zu QcI5vcLGRC3rIYpBUcVEzhkGxEgdBnI1JEO7ZMYMRf8IyfFHNB9GAJ8dRumTdw7fbY 9vXDIvZQ8ZfVA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0006D180341 for ; Wed, 17 Dec 2025 15:26:59 +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=-0.9 required=5.0 tests=BAYES_40,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: No X-Envelope-From: Received: from fhigh-b5-smtp.messagingengine.com (fhigh-b5-smtp.messagingengine.com [202.12.124.156]) (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 ; Wed, 17 Dec 2025 15:26:49 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4FC867A00E2 for ; Wed, 17 Dec 2025 10:26:44 -0500 (EST) Received: from phl-imap-01 ([10.202.2.91]) by phl-compute-04.internal (MEProxy); Wed, 17 Dec 2025 10:26:44 -0500 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=fm1; t=1765985204; x=1766071604; bh=lcGGZXIe1c9lIXn5X4oe0 YEZiYsRMEn3mFX/Zkk+SNQ=; b=OnB9+pwYbLtjWHUsJAdM6Cm7my59fN6fFey4D w6JHKkRt8e3FnU/wZwHWJgMY0FbR93KtUXlF7foM/ieBceigr7Kw1U+O8ViyPuic 1CBrajhRHbpBsOHDkcSee2Fl2aS4eF2BU4l/KLT6GYmqhUhsj4mF1ue/N/S24YPg U0ZSTBiGumsHkMAkvhRizXjmsDvuWtYWGYK1oOMHcLPb559Qfbtb5PxTxIjm6hBs U5YdXB3Uc33OZJzekZqCjSoNxrCfDMh8wIJLQ5S4Fy2cJa1R6WDI30FFTNiCbrBX iSYCNQQZ5nlN4gRIpynFCPfG5B5VgNoqOpVM0SDHcAmGar5Qw== 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=fm1; t=1765985204; x=1766071604; bh=l cGGZXIe1c9lIXn5X4oe0YEZiYsRMEn3mFX/Zkk+SNQ=; b=NT7Z9Y9JhqH7tSlBz 3iPCMN4dphTdFvJrEnFlSz0ipDYZFqz9LspJWJhrEIYBfmDC7tMPtg8yCDp+9mEk 0NuQpRUMmw/vQ91wlkZ8Oxa5tgjvkXpTORj1M6QtdukUGfUCCX4AMaI3epO1gbJN JanDtztcWzSohd1j6modSKkL9qkZbEppCQ5anGagVsqqIc5ZUJ3uu9AjX5m9DLzu 5MYVuBcY2G00Fvb8HfDaTKrxJBDJ9TAjIeDaopOIZLrYCod9Hf8DYWxOQL8CEZpp TZHx0/n58aPPqBusZEOpls5F9bTuwoT8rZ4gFjkEmJBHy5jleT4O9MZAKYxQJLC5 X0AEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegvdeludcutefuodetggdotefrod 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 CF1C818C004E; Wed, 17 Dec 2025 10:26:43 -0500 (EST) 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: AboHCY4z1pNF Date: Wed, 17 Dec 2025 09:26:23 -0600 To: "php internals" Message-ID: <09b0365c-9708-4c38-8004-5b1ca693ad8c@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] isReadable/isWriteable property reflection Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Wed, Nov 5, 2025, at 5:24 PM, Larry Garfield wrote: > In other news, Ilija and I said a year ago that we'd take a swing at > adding isReadable/isWriteable methods to ReflectionProperty. Took a > while, but here we are. A strangely small RFC from us: > > https://wiki.php.net/rfc/isreadable-iswriteable A few updates based on the discussion here: * We now account for static properties. (What a concept.) * The `static` magic string is gone. * We have decided on an approach for magic methods. The updated RFC text explains it in more detail, but in short, "if __isset(), then use that to determine readable. Otherwise, __get() implies readable. __set() implies writeable." That should handle the use cases Nicolas was interested in. We consider the RFC feature complete at this point. Baring any further substantive discussion, expect a vote in January after the blackout period ends. --Larry Garfield