Re: ??= and function calls

From: Date: Wed, 05 Jul 2023 22:18:03 +0000
Subject: Re: ??= and function calls
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-120754@lists.php.net to get a copy of this message
Hi Flávio On Wed, Jul 5, 2023 at 12:17 PM Flávio Heleno <flaviohbatista@gmail.com> wrote: >> > I recently discovered some unfortunate behavior of the coalesce >> > assignment operator (??=) in combination with function calls. > > Great catch Ilija! > > Do you mind sharing how did you stumble upon it? Oh, it's unspectacular. oss-fuzz found a related problem (https://github.com/php/php-src/pull/11581) which made me look into the implementation of ??= which is when I noticed the strange behavior. Ilija

« previous php.internals (#120754) next »