summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-05-11 18:49:45 +0000
committerZeev Suraski <zeev@php.net>2000-05-11 18:49:45 +0000
commit9a751419cfd600c474a3950012e06ea878afcc73 (patch)
tree65cdda723414116859a85cb8e2d5f7a6fd0b4ac7
parentcb35b7e4ede5d2356237a23edd88c71b83877b89 (diff)
downloadphp-git-9a751419cfd600c474a3950012e06ea878afcc73.tar.gz
Refined fix
-rw-r--r--Zend/zend_compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index cd393bf379..58b49187cd 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -795,11 +795,12 @@ void do_receive_arg(int op, znode *var, znode *offset, znode *initialization, un
CG(active_op_array)->arg_types[i] = BYREF_NONE;
}
CG(active_op_array)->arg_types[0]=(unsigned char) offset->u.constant.value.lval;
+ CG(active_op_array)->arg_types[offset->u.constant.value.lval] = pass_type;
}
} else {
CG(active_op_array)->arg_types = (unsigned char *) erealloc(CG(active_op_array)->arg_types, sizeof(unsigned char)*(offset->u.constant.value.lval+1));
+ CG(active_op_array)->arg_types[0]=(unsigned char) offset->u.constant.value.lval;
CG(active_op_array)->arg_types[offset->u.constant.value.lval] = pass_type;
- CG(active_op_array)->arg_types[0]++;
}
}