Re: Undefined variables and the array append operator

From: Date: Wed, 30 Mar 2022 18:58:56 +0000
Subject: Re: Undefined variables and the array append operator
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-117463@lists.php.net to get a copy of this message
On 30/03/2022 15:32, Guilliam Xavier wrote:
On the other hand, I agree that $undefined[] = $x looks like a bug... are both cases the exact same opcode?
Some very good points raised in this thread about how many different closely-related cases there are here. I shall have to think clearly about which cases we want to change, and look at the implementation to see how easily those can be separated out from the others. It sounds like there are at least some cases that might pass an RFC vote to change, though. Regards, -- Rowan Tommins [IMSoP]

« previous php.internals (#117463) next »