zend_op *opline = get_next_op(CG(active_op_array) CLS_CC);
opline->opcode = ZEND_JMPZNZ;
- opline->result = *expr; /* the conditional expression */
+ opline->op1 = *expr; /* the conditional expression */
second_semicolon_token->u.opline_num = for_cond_op_number;
- SET_UNUSED(opline->op1);
SET_UNUSED(opline->op2);
}
opline->opcode = ZEND_JMP;
opline->op1.u.opline_num = cond_start->u.opline_num;
- CG(active_op_array)->opcodes[second_semicolon_token->u.opline_num].op1.u.opline_num = get_next_op_number(CG(active_op_array));
+ CG(active_op_array)->opcodes[second_semicolon_token->u.opline_num].op2.u.opline_num = get_next_op_number(CG(active_op_array));
SET_UNUSED(opline->op1);
SET_UNUSED(opline->op2);
opline->opcode = ZEND_JMP;
opline->op1.u.opline_num = second_semicolon_token->u.opline_num+1;
- CG(active_op_array)->opcodes[second_semicolon_token->u.opline_num].op2.u.opline_num = get_next_op_number(CG(active_op_array));
+ CG(active_op_array)->opcodes[second_semicolon_token->u.opline_num].extended_value = get_next_op_number(CG(active_op_array));
SET_UNUSED(opline->op1);
SET_UNUSED(opline->op2);
}
NEXT_OPCODE();
case ZEND_JMPZNZ: {
- znode *res = &opline->result;
+ znode *res = &opline->op1;
if (!zend_is_true(get_zval_ptr(res, Ts, &EG(free_op1), BP_VAR_R))) {
#if DEBUG_ZEND>=2
- printf("Conditional jmp on false to %d\n", opline->op2.u.opline_num);
+ printf("Conditional jmp on false to %d\n", opline->extended_value);
#endif
- opline = &op_array->opcodes[opline->op2.u.opline_num];
+ opline = &op_array->opcodes[opline->extended_value];
} else {
#if DEBUG_ZEND>=2
- printf("Conditional jmp on true to %d\n", opline->op1.u.opline_num);
+ printf("Conditional jmp on true to %d\n", opline->op2.u.opline_num);
#endif
- opline = &op_array->opcodes[opline->op1.u.opline_num];
+ opline = &op_array->opcodes[opline->op2.u.opline_num];
}
FREE_OP(res, EG(free_op1));
}