Skip to content

Commit 2399fc8

Browse files
committed
Removed useless assignment
1 parent 796b633 commit 2399fc8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Zend/zend_vm_def.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7600,7 +7600,8 @@ ZEND_VM_HANDLER(158, ZEND_CALL_TRAMPOLINE, ANY, ANY)
76007600

76017601
ZEND_ASSERT(!(fbc->common.fn_flags & ZEND_ACC_GENERATOR));
76027602

7603-
EG(scope) = fbc->common.scope;
7603+
/* This must be already set on invokation of trampoline function */
7604+
/*EG(scope) = fbc->common.scope;*/
76047605
call->symbol_table = NULL;
76057606
i_init_func_execute_data(call, &fbc->op_array,
76067607
ret, (fbc->common.fn_flags & ZEND_ACC_STATIC) == 0);

Zend/zend_vm_execute.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CALL_TRAMPOLINE_SPEC_HANDLER(Z
18141814

18151815
ZEND_ASSERT(!(fbc->common.fn_flags & ZEND_ACC_GENERATOR));
18161816

1817-
EG(scope) = fbc->common.scope;
1817+
/* This must be already set on invokation of trampoline function */
1818+
/*EG(scope) = fbc->common.scope;*/
18181819
call->symbol_table = NULL;
18191820
i_init_func_execute_data(call, &fbc->op_array,
18201821
ret, (fbc->common.fn_flags & ZEND_ACC_STATIC) == 0);

0 commit comments

Comments
 (0)