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