Skip to content

Commit 249915f

Browse files
committed
Add comment to explaining the new check
1 parent 3b58769 commit 249915f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/Optimizer/optimize_temp_vars_5.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ void optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *c
152152
currT = VAR_NUM(ZEND_RESULT(opline).var) - offset;
153153
if (valid_T[currT]) {
154154
if (start_of_T[currT] == opline) {
155+
/* ZEND_FAST_CALL can not share temporary var with others
156+
* since the fast_var could also be set by ZEND_HANDLE_EXCEPTION
157+
* which could be ahead of it */
155158
if (opline->opcode != ZEND_FAST_CALL) {
156159
taken_T[map_T[currT]] = 0;
157160
}

0 commit comments

Comments
 (0)