1--TEST--
2By-ref variadics enforce the reference
3--FILE--
4<?php
5
6function test(&... $args) { }
7
8test(1);
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: test(): Argument #1 cannot be passed by reference in %s:%d
13Stack trace:
14#0 {main}
15 thrown in %s on line %d
16