@@ -1042,8 +1042,8 @@ static void assemble_code_blocks(const zend_cfg *cfg, zend_op_array *op_array, z
1042
1042
} else {
1043
1043
/* this block will not be used, delete all constants there */
1044
1044
const zend_op * op = op_array -> opcodes + b -> start ;
1045
- const zend_op * end = op + b -> len ;
1046
- for (; op < end ; op ++ ) {
1045
+ const zend_op * last_op = op + b -> len ;
1046
+ for (; op < last_op ; op ++ ) {
1047
1047
if (op -> op1_type == IS_CONST ) {
1048
1048
literal_dtor (& ZEND_OP1_LITERAL (op ));
1049
1049
}
@@ -1159,15 +1159,15 @@ static void assemble_code_blocks(const zend_cfg *cfg, zend_op_array *op_array, z
1159
1159
}
1160
1160
1161
1161
if (op_array -> fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK ) {
1162
- zend_op * opline = new_opcodes ;
1163
- const zend_op * end = opline + len ;
1164
- while (opline < end ) {
1165
- if (opline -> opcode == ZEND_FAST_RET &&
1166
- opline -> op2 .num != (uint32_t )-1 &&
1167
- opline -> op2 .num < j ) {
1168
- opline -> op2 .num = map [opline -> op2 .num ];
1162
+ zend_op * finally_opline = new_opcodes ;
1163
+ const zend_op * last_finally_op = finally_opline + len ;
1164
+ while (finally_opline < last_finally_op ) {
1165
+ if (finally_opline -> opcode == ZEND_FAST_RET &&
1166
+ finally_opline -> op2 .num != (uint32_t )-1 &&
1167
+ finally_opline -> op2 .num < j ) {
1168
+ finally_opline -> op2 .num = map [finally_opline -> op2 .num ];
1169
1169
}
1170
- opline ++ ;
1170
+ finally_opline ++ ;
1171
1171
}
1172
1172
}
1173
1173
}
0 commit comments