Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124346 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 qa.php.net (Postfix) with ESMTPS id 042051A00C4 for ; Wed, 10 Jul 2024 13:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720619347; bh=YcG9WrVDwfWLn3HWmTUI+ynXLtwFgLMKecJWZ7n/XKw=; h=In-Reply-To:References:Date:From:To:Subject:From; b=Y3xhF/5cOBJI6XW/igXaKMwYyM/+sZ/ot0AF4YAumIgbm0nhqpSgAl25e7cUOOF0z VN/htdpFyTAvifVTix3Fe9UJGm4TXu0T1YMy0ePgXcoGICKee3BA9kNYllVCbhYIw1 CRAvpzszwTSqFohRB6r+fpRF8NzLk49cODp+hFNudelvl/Kg8Z0Zhes3kSVdm3enJy XkFyI22F90yUjbI9eJIkYVvPgp03vxZmyNKiaWIW20qDyVyxpsTjloytRxvE38P8fE od8LbR6dzU6IvWouSsGtwFhBbkSdm2qkte749i/ynLqYlOT60mgIS5a/iq2UQoY1jS Ld3E9D6YTN5EQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BD1F518007F for ; Wed, 10 Jul 2024 13:49:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) 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.0 X-Spam-Virus: No X-Envelope-From: Received: from fout7-smtp.messagingengine.com (fout7-smtp.messagingengine.com [103.168.172.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 ; Wed, 10 Jul 2024 13:49:02 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id E9A9F13816A1 for ; Wed, 10 Jul 2024 09:47:35 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 10 Jul 2024 09:47:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc: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=1720619255; x= 1720705655; bh=r6jfe6ukt4ZgcbbsPCNgFyDvIgDu60w+l8r/n6jhemA=; b=D fkntdaOLgp49L753VidxmWWoSV9OnZ9rycnnB7S8D0ij8+/U+Vz7wvcMCAfa7gWx UGbBa5IAmIE99DqHEsKW76w5sN0ugfksNTOCUuVA5a1sPH/I3+t/H2SIbBfvtgSz 22LQVCxjwZHX2n2KG8Q36LeAyOvnWZsAU1rYaxbgx9rbdSlIo6Hw0CVt7myboRyf MOd/9n1Wd0DopD92yO3Nm9gvwluH+4VW6udPEFyMA4H1c9rJuYg3cSAnGcyxautF q/STuMzJKIhazExPrea9TXtHi0EBWMyJGh4r+wlQgnYfoNwmqp67M/CKBuNF9rHt xA21MBXOkixy4KCcfRQtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1720619255; x=1720705655; bh=r6jfe6ukt4ZgcbbsPCNgFyDvIgDu 60w+l8r/n6jhemA=; b=vGqCekqnaRZ2iZGv9Ct02b1K6W6BQAjS7g+NS82wnHwy iorJlmWiKZOOxAmqdTtWkmkCIbhCp/LK0/WrYb1oYVu+IDzGVrycE9fUCytotqZm 90gHpF0nQsuQ9RwDTypmbzCPBRzcA7bbZvxqdLg6VkOm4IyUyITyOo2WcrVLPdIY SprOq08HWN0CaFDfeeLW0jdQXTn9vttdqMchPQCMZAaBRDelF9PMe3Uy8OC2yOLG QVKhcXQ6dbxIa5WQMBz0bJoJvH22jp521cfCOhxsY+JVI8jl0x+4e227qLZmwjrl K3g3NE4+ScBSqGx/qxhZO3kOWXl2uBhirBZcC9jqKg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfedvgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepveehhedvveejledvvefgleevffdtjeekledvkeegheff gfeivdejhffhledtudetnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgv lhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9CBE11700093; Wed, 10 Jul 2024 09:47:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: In-Reply-To: References: Date: Wed, 10 Jul 2024 08:47:14 -0500 To: "php internals" Subject: Re: [PHP-DEV] [RFC] Property Hook improvements Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Mon, Jul 1, 2024, at 12:02 PM, Larry Garfield wrote: > Hi folks. As Ilija's been polishing off hooks to get the PR merged, > we've run into two small revisions that should make life better for all > involved. One is a performance improvement that requires a very slight > error handling behavior change, and the other is enabling readonly in > selected (but probably all of the relevant) circumstances. > > I'd say we expect these to be uncontroversial, but this is PHP. :-) So > I will instead just note that it's a short RFC and open the discussion > accordingly. > > https://wiki.php.net/rfc/hook_improvements Based on discussion here and off-list, and after confirming with Nicolas that lazy objects would be compatible with readonly properties already (which have very similar use cases in practice), we're going to hold off on the readonly hooks part of this RFC. I've split it off to its own RFC for later: https://wiki.php.net/rfc/readonly_hooks The other half of this RFC, removing the recursion guard in return for performance, has had no objections. Its discussion period ends Friday, so I will open the vote on that Monday-ish. --Larry Garfield