Skip to content

Commit b32b283

Browse files
author
Andi Gutmans
committed
- one more place which seems to have needed fixing. I don't have time to look
more into it. I hope we don't have anymore places which need fixing.
1 parent 3d631c4 commit b32b283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,8 @@ binary_assign_op_addr: {
14171417
case ZEND_SEND_VAR:
14181418
if (function_being_called
14191419
&& function_being_called->common.arg_types
1420-
&& opline->op2.u.opline_num<function_being_called->common.arg_types[0]
1421-
&& function_being_called->common.arg_types[1+opline->op2.u.opline_num]==BYREF_FORCE) {
1420+
&& opline->op2.u.opline_num<=function_being_called->common.arg_types[0]
1421+
&& function_being_called->common.arg_types[opline->op2.u.opline_num]==BYREF_FORCE) {
14221422
goto send_by_ref;
14231423
}
14241424
{

0 commit comments

Comments
 (0)