[php-src] PR #17438: Fix GH-17428: Assertion failure ext/opcache/jit/zend_jit_ir.c:8940
| From: | nielsdos | Date: | Fri, 10 Jan 2025 19:42:27 +0000 |
| Subject: | [php-src] PR #17438: Fix GH-17428: Assertion failure ext/opcache/jit/zend_jit_ir.c:8940 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30348@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17438
Author: nielsdos
The code to update the call_level in that case skips the opline itself, as that's handled by
the tail handler, and then wants to set the opline to the last opline of the block because the code
below the switch will update the call_level for that opline.
However, the test has a block with a single opline (THROW). The block after that has
ZEND_INIT_FCALL, because
i points to ZEND_INIT_FCALL now, it erroneously causes the
call_level after the switch. Although it suffices to change i to end (none
of the opcodes here occur in zend_jit_dec_call_level), I added a goto label as well to
be safer for the future in case the list of opcodes changes.