Fix -a interactive mode (no idea how the previous commit got committed)

This commit is contained in:
Zeev Suraski 2000-10-11 18:51:52 +00:00
parent 48167d2b21
commit dee2d85e77
2 changed files with 2 additions and 4 deletions

View File

@ -2326,10 +2326,7 @@ send_by_ref:
}
}
#if SUPPORT_INTERACTIVE
ALLOC_ZVAL(*(EG(return_value_ptr_ptr)));
**EG(return_value_ptr_ptr) = *retval_ptr;
(*EG(return_value_ptr_ptr))->refcount = 1;
(*EG(return_value_ptr_ptr))->is_ref = 0;
ALLOC_INIT_ZVAL(*(EG(return_value_ptr_ptr)));
op_array->last_executed_op_number = opline-op_array->opcodes;
EG(in_execution) = original_in_execution;
free_alloca(Ts);

View File

@ -540,6 +540,7 @@ void execute_new_code(CLS_D)
CG(active_op_array)->end_op_number = CG(active_op_array)->last;
EG(active_op_array) = CG(active_op_array);
zend_execute(CG(active_op_array) ELS_CC);
zval_ptr_dtor(EG(return_value_ptr_ptr));
CG(active_op_array)->start_op_number = CG(active_op_array)->last_executed_op_number;
}
#endif