diff options
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 0494855562..e1390590b4 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -859,8 +859,9 @@ void do_pass_param(znode *param, int op, int offset CLS_DC) break; } } - if (arg_types && offset<=arg_types[0] - && arg_types[offset]==BYREF_FORCE) { + + + if (ARG_SHOULD_BE_SENT_BY_REF(offset, 1, arg_types)) { /* change to passing by reference */ switch (param->op_type) { case IS_VAR: |