Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129642 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 09B1F1A00BC for ; Wed, 17 Dec 2025 19:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1766000924; bh=XwSexqubMJ5FDr36W9yycA847pjid0tGa0HxB0Yxws4=; h=Date:From:To:In-Reply-To:References:Subject:From; b=aM2+0P+TJaanSbC7SDrPqZH0IF4ML6qTMq0JPujWHONsOZw3rSaRFSVY3NSDKk+gE HQtyZMtSSlL4E3qUnurgaTlLbY/aw+gTKZZLuu456Yb/6Xv6kUXMoey9gn8GEg53Od MwJWAGvrmvMGCgRB/s50wnfPcLqIAuCQWbxhcrYKePT5kXgkJ/1ViJr2fsiFQoi1BF 0gSOq3TvABcT/Rcw/dH49LD71eN6koQ0bIzODG1NQsk9pXFnTdjSEeSv8WrJNi7hs/ 2LYgRJ0XBWTCXzif2yCbAgijifiWsnqB/59THc3cFAbbs44NSMMDx5EGKemcVUDYh2 Wb9VbtMdRYIeQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5E386180386 for ; Wed, 17 Dec 2025 19:48:42 +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.1 required=5.0 tests=BAYES_50,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 fout-b8-smtp.messagingengine.com (fout-b8-smtp.messagingengine.com [202.12.124.151]) (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 19:48:41 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 53B7E1D00084 for ; Wed, 17 Dec 2025 14:48:36 -0500 (EST) Received: from phl-imap-01 ([10.202.2.91]) by phl-compute-04.internal (MEProxy); Wed, 17 Dec 2025 14:48:36 -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=1766000916; x=1766087316; bh=hnYIhsSqHRXyR+MjvTEvk xEN10esUZYDNEr+YcFs5BM=; b=PahQwl+9EeTKtoawslG9PGRAcVBeU/LvzDjb1 B2fOW1EvToNdh4XuMCC2d5egVS+PrZ2S/xKgQJ6BFafQmkAtdyTQLFE29n8L25Ab whc2tr92WOfX4b33xQXrE8mnF4lxQi7TF6If6vqx9Blo9MlCSUnESFX3b4ZBhJtw 527l4+O3k3ILq0BZaWzfDUPwQdR0CA4lFAfnxWNiwERhL2Djw8OWUq7t0+USyehv +rEv3wSBQF9bEYP0+bIGcH2enaYhtfbX+bw5xs8MXmxDi85I90crYSvsVFTH5KWb nAdOMUhCXalV5OiPFRpHnz5x+iaP6l8z9T0tJt20PoWAKZ0eQ== 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=1766000916; x=1766087316; bh=h nYIhsSqHRXyR+MjvTEvkxEN10esUZYDNEr+YcFs5BM=; b=BrrcxJRmnMpQ1qNSf hKdVlmcG6+vlVZWh27AxCTQK7/cWH0zLu2MeytspT3z388azAjLxNcOiV9XO1Ko+ n6bR8YXihkhONv5VUNT7p2yrV+jUkzkah7oKFoiuRZd6Vf0V1De23aUEqqpnfdKP TziuZ5FYBVuSzIV2rR1NZwouMrGtuUBCScNUlMLMvdjZ+HH2Pmw4MZ+3xt1e29bc qhixS2g8cj/xoGa78rSGP0kzBZ+PhkkfIlbQYEiZalgwuGefY626kBS+DllpKUYL er1sqc/4ApJTgbeTCj3mVv8W/xE07yBXt0dJl+sQa4zGc+EjoGZGiIdTpSQ/nu/W +HujQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvkfgjfhfutgfgsehtqhertdertdejnecuhfhrohhmpedfnfgrrhhrhicu ifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqne cuggftrfgrthhtvghrnhepuefgteeijeeuveffudelhffhtefhkeevtdeuvefgffdvfeei vdetgfehveetleffnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhgu thgvtghhrdgtohhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id EDC1118C004E; Wed, 17 Dec 2025 14:48:35 -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 13:48:15 -0600 To: "php internals" Message-ID: In-Reply-To: References: <09b0365c-9708-4c38-8004-5b1ca693ad8c@app.fastmail.com> Subject: Re: [PHP-DEV] [RFC] isReadable/isWriteable property reflection Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Wed, Dec 17, 2025, at 12:02 PM, Tim D=C3=BCsterhus wrote: > Hi > > Am 2025-12-17 16:26, schrieb Larry Garfield: >> * We have decided on an approach for magic methods. The updated RFC=20 >> text explains it in more detail, but in short, "if __isset(), then us= e=20 >> that to determine readable. Otherwise, __get() implies readable. =20 >> __set() implies writeable." That should handle the use cases Nicolas=20 >> was interested in. > > That works for me. I didn't feel particularly strongly either way. > >> We consider the RFC feature complete at this point. Baring any furth= er=20 >> substantive discussion, expect a vote in January after the blackout=20 >> period ends. > > I don't have further comments about the semantics themselves, but have=20 > one further clarification question: > >> The property has not been unset(). If it has, follow the same __isse= t=20 >> check as above > > Should this read =E2=80=9Cthe same __get check=E2=80=9D instead? Hm, yes, you are correct. Updated. > And one note with regard to process: Don't forget to add a link to the=20 > discussion (https://news-web.php.net/php.internals/129101) to the RFC. Added. Oh, and one other note: It turns out that in English, both "writeable" a= nd "writable" are nominally valid. The latter seems more common (and my= spellchecker only recognizing the latter), so we've standardized on the= non-E version throughout the RFC. (The code already was.) --Larry Garfield