mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
0d7a638866
As per RFC: https://wiki.php.net/rfc/variadics
13 lines
192 B
PHP
13 lines
192 B
PHP
--TEST--
|
|
By-ref variadics enforce the reference
|
|
--FILE--
|
|
<?php
|
|
|
|
function test(&... $args) { }
|
|
|
|
test(1);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Only variables can be passed by reference in %s on line %d
|