Re: [RFC] Property Hook improvements
On Mon, 1 Jul 2024, 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
1. Remove the proactive guard against recursive backing value access
"which would eventually trigger a stack overflow"
Would it though? PHP 8.4 has an actual protection against this now,
instead of getting the white-screen-of-death.
Not that it matters much, but it's probably good to be precise in the
language.
cheers,
Derick
Thread (17 messages)