From b32b2831d8d919bdf9331b894f8027ed8bebe60e Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 15 Apr 1999 17:43:16 +0000 Subject: [PATCH] - 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. --- Zend/zend_execute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 7b5ddd34a5..a4b44e4125 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1417,8 +1417,8 @@ overloaded_function_call_cont: case ZEND_SEND_VAR: if (function_being_called && function_being_called->common.arg_types - && opline->op2.u.opline_numcommon.arg_types[0] - && function_being_called->common.arg_types[1+opline->op2.u.opline_num]==BYREF_FORCE) { + && opline->op2.u.opline_num<=function_being_called->common.arg_types[0] + && function_being_called->common.arg_types[opline->op2.u.opline_num]==BYREF_FORCE) { goto send_by_ref; } { -- 2.40.0