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