mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
Fix -a interactive mode (no idea how the previous commit got committed)
This commit is contained in:
parent
48167d2b21
commit
dee2d85e77
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user