mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
- In any case create the free opcode. Need to allow the functions to
create a hint.
This commit is contained in:
parent
dbb67ab9dc
commit
b7b614d0b5
@ -622,17 +622,16 @@ void do_add_variable(znode *result, znode *op1, znode *op2 CLS_DC)
|
||||
void do_free(znode *op1 CLS_DC)
|
||||
{
|
||||
if (op1->op_type==IS_TMP_VAR) {
|
||||
zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
|
||||
zend_op *last_opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
|
||||
zend_op *opline = get_next_op(CG(active_op_array) CLS_CC);
|
||||
|
||||
if ((opline->opcode == ZEND_DO_FCALL) || (opline->opcode == ZEND_DO_FCALL_BY_NAME)) {
|
||||
opline->result.u.EA.type |= EXT_TYPE_UNUSED;
|
||||
} else {
|
||||
zend_op *opline = get_next_op(CG(active_op_array) CLS_CC);
|
||||
|
||||
opline->opcode = ZEND_FREE;
|
||||
opline->op1 = *op1;
|
||||
SET_UNUSED(opline->op2);
|
||||
if ((last_opline->opcode == ZEND_DO_FCALL) || (last_opline->opcode == ZEND_DO_FCALL_BY_NAME)) {
|
||||
last_opline->result.u.EA.type |= EXT_TYPE_UNUSED;
|
||||
}
|
||||
|
||||
opline->opcode = ZEND_FREE;
|
||||
opline->op1 = *op1;
|
||||
SET_UNUSED(opline->op2);
|
||||
} else if (op1->op_type==IS_VAR) {
|
||||
zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user