History log of /php-src/ext/opcache/tests/gh17106.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# cdfd9601 10-Dec-2024 Ilija Tovilo

Fix ZEND_MATCH_ERROR misoptimization

op1 of ZEND_MATCH_ERROR, which refers to the match expression, is not freed by
MATCH_ERROR itself. Instead, it is freed by ZEND_HANDLE_EXCEPTION. For

Fix ZEND_MATCH_ERROR misoptimization

op1 of ZEND_MATCH_ERROR, which refers to the match expression, is not freed by
MATCH_ERROR itself. Instead, it is freed by ZEND_HANDLE_EXCEPTION. For normal
control flow, a FREE is placed at the end of the match expression.

Since FREE may appear after MATCH_ERROR in the opcode sequence, we need to
correctly handle op1 of MATCH_ERROR as alive.

Fixes GH-17106
Closes GH-17108

show more ...