[php-src] PR #11322: Fix list() assignment in array literals
| From: | iluuu1994 | Date: | Thu, 25 May 2023 22:13:19 +0000 |
| Subject: | [php-src] PR #11322: Fix list() assignment in array literals | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22596@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11322
Author: iluuu1994
Fixes GH-11320
This is a bit messy :( The LHS of assignment can look like other expressions, but is interpreted
differently in the compiler. This makes evaluating the LHS unsafe. I'm not aware of other such
AST elements but I wouldn't rule it out. It might be better to revert the original commit...
The idea was to simplify, not make it more complicated.