summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-04-15 17:43:16 +0000
committerAndi Gutmans <andi@php.net>1999-04-15 17:43:16 +0000
commitb32b2831d8d919bdf9331b894f8027ed8bebe60e (patch)
tree19d5ca9342a3f848602be7a7c08c3fcb09640c20
parent3d631c4ca07afdb9780c76ea8d805d679082e7a9 (diff)
downloadphp-git-b32b2831d8d919bdf9331b894f8027ed8bebe60e.tar.gz
- 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.
-rw-r--r--Zend/zend_execute.c4
1 files 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_num<function_being_called->common.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;
}
{