1--TEST--
2Argument unpacking does not work with string keys (forward compatibility for named args)
3--FILE--
4<?php
5
6set_error_handler(function($errno, $errstr) {
7    var_dump($errstr);
8});
9
10try {
11    var_dump(...new ArrayIterator([1, 2, "foo" => 3, 4]));
12} catch (Error $ex) {
13    var_dump($ex->getMessage());
14}
15
16?>
17--EXPECT--
18string(68) "Cannot use positional argument after named argument during unpacking"
19