Re: [RFC] Property Hook improvements

From: Date: Mon, 01 Jul 2024 17:59:09 +0000
Subject: Re: [RFC] Property Hook improvements
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, Jul 1, 2024, at 5:28 PM, Lynn wrote:

> "A side effect of that optimization, however, is that we cannot 
> proactively detect the bug above. Instead, it would result in an 
> infinite loop, which would eventually trigger a a stack overflow."
>
> This got a small typo ("a a" at the end). 

Fixed, thanks.

> This reads no different to me 
> than infinite recursion between 2 methods. It honestly does not bother 
> me, and any static analysis tool will be able to pick this anyway. 
> Sounds like a free performance gain to me!

Yep, it would be exactly 2 method recursion, and the engine would naturally treat it as such.

--Larry Garfield


Thread (17 messages)

« previous php.internals (#124155) next »