php-src/Zend/tests/variadic/no_default_error.phpt
2013-09-26 18:39:17 +02:00

11 lines
197 B
PHP

--TEST--
Variadic argument cannot have a default value
--FILE--
<?php
function test(...$args = 123) {}
?>
--EXPECTF--
Fatal error: Variadic parameter cannot have a default value in %s on line %d