[php-src] PR #21696: Fix GH-21691: OPcache CFG optimizer eliminates QM_ASSIGN feeding JMPZ with VAR operand
| From: | iliaal | Date: | Thu, 09 Apr 2026 19:53:22 +0000 |
| Subject: | [php-src] PR #21696: Fix GH-21691: OPcache CFG optimizer eliminates QM_ASSIGN feeding JMPZ with VAR operand | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35644@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21696
Author: iliaal
Fixes #21691
The CFG optimizer (pass 5) removed a
QM_ASSIGN that converted IS_VAR to
IS_TMP_VAR before JMPZ. Since JMPZ has no handler for
IS_VAR operands, this produced "Invalid opcode 43/4/0." The pattern occurs
when ASSIGN_REF (which produces IS_VAR) feeds into a conditional via
QM_ASSIGN.
Skips the QM_ASSIGN elimination when the source operand is IS_VAR.