/* Push a seperator to the switch and foreach stacks */
zend_switch_entry switch_entry;
- /* switch_entry.cond.op_type = IS_UNUSED; Doesn't seem to be needed now */
+ switch_entry.cond.op_type = IS_UNUSED;
switch_entry.default_case = 0;
switch_entry.control_var = 0;
zend_op *opline;
/* If we reach the seperator then stop applying the stack */
- if (foreach_copy->op1.op_type == IS_UNUSED && foreach_copy->op2.op_type == IS_UNUSED) {
+ if (foreach_copy->result.op_type == IS_UNUSED && foreach_copy->op1.op_type == IS_UNUSED) {
return 1;
}