Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129638 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 724CE1A00BC for ; Wed, 17 Dec 2025 18:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1765994567; bh=KeLdvVgi+Yps441ys86+6ggtqHKmj8v5yxZHLjuQuVA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=To12RVjfra704D2sOOiQxhuExiZ4IyNrRIZb0+9QjxJmZGmjxmDxVUh1BayXQU1V4 Sklx2VZdK2ZYqPlsF3qdjFkXSKhgQtePNEDP2U3NNFJsnv1/Q+FdzHndpLcAY62Bcf +t8Q60i9qw/+EVqvAnCXISpztBPjz1xJIAZMTEsYr32Kid1UfmfwhOwyWnm7Tnd1L8 /qxmlkZUYTe/ITFlI+PNt1Vm+nO+0F1TE6jj25IrepvrlUp9Enill+F7larQoEKA4v 5DBVfvkCqQBxvRiBedCKUM2Sph+ynnyxCkkXuNEpjZRp3V7V76LaQjyoUXxZtMSXjb y9XtgAmJhUYGw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C6C06180083 for ; Wed, 17 Dec 2025 18:02:46 +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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 18:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1765994559; bh=NzkY+nThbb5kwos/031VaIUOHWHhyGjCVuvttz72W9g=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=eoPVu0fbwGHxeR2lBcGASXG2uAP3DsCcWx+2nieX3mRAHtdHT789pjK9n/TaHSuA/ Tspme5uosiqZ8xdRWnIgLvbQz2Clj3HqerymBEO6Z0mtaw8mL9M3GFb01z5bCKpel4 N1wWuwRTy7iya++hoPDC1YDpMkVjASZFxl9E5aTsjcSwTELOI5MsTn3qOWSV7/3P4e 9gjua+5NRPVS6Mn3fn1IoQ1GESz2jwlYTt6E2AhR2jdRftwENFimG61LEZ+1LVwn7M 9uJPg7AzsiyJQfEuFtj7qwAFWp/QicWiysieZnhvIeU/oF00XFIUSba4EEeYdW55eK heWvD2UdAn+CQ== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 17 Dec 2025 19:02:39 +0100 To: Larry Garfield Cc: php internals Subject: Re: [PHP-DEV] [RFC] isReadable/isWriteable property reflection In-Reply-To: <09b0365c-9708-4c38-8004-5b1ca693ad8c@app.fastmail.com> References: <09b0365c-9708-4c38-8004-5b1ca693ad8c@app.fastmail.com> Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-12-17 16:26, schrieb Larry Garfield: > * 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. That works for me. I didn't feel particularly strongly either way. > We consider the RFC feature complete at this point. Baring any further > substantive discussion, expect a vote in January after the blackout > period ends. I don't have further comments about the semantics themselves, but have one further clarification question: > The property has not been unset(). If it has, follow the same __isset > check as above Should this read “the same __get check” instead? And one note with regard to process: Don't forget to add a link to the discussion (https://news-web.php.net/php.internals/129101) to the RFC. Best regards Tim Düsterhus