summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_compile.c')
-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 0ccacbb27d..febf2da905 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2551,7 +2551,8 @@ static zend_bool zend_do_perform_implementation_check(const zend_function *fe, c
return 0;
}
- if (proto->common.pass_rest_by_reference
+ if (fe->common.type != ZEND_USER_FUNCTION
+ && proto->common.pass_rest_by_reference
&& !fe->common.pass_rest_by_reference) {
return 0;
}