Skip to content

Commit cd5ea16

Browse files
committed
Micro optimization for better register allocation
1 parent 0fa50fb commit cd5ea16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_vm_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ ZEND_VM_HANDLER(60, ZEND_DO_FCALL, ANY, ANY)
28542854
zend_vm_stack_free_call_frame(call);
28552855

28562856
if (!RETURN_VALUE_USED(opline)) {
2857-
zval_ptr_dtor(ret);
2857+
zval_ptr_dtor(EX_VAR(opline->result.var));
28582858
}
28592859

28602860
if (UNEXPECTED(should_change_scope)) {

Zend/zend_vm_execute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int ZEND_FASTCALL ZEND_DO_FCALL_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
602602
zend_vm_stack_free_call_frame(call);
603603

604604
if (!RETURN_VALUE_USED(opline)) {
605-
zval_ptr_dtor(ret);
605+
zval_ptr_dtor(EX_VAR(opline->result.var));
606606
}
607607

608608
if (UNEXPECTED(should_change_scope)) {

0 commit comments

Comments
 (0)