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(...[1, 2, "foo" => 3, 4]);
12} catch (Error $ex) {
13	var_dump($ex->getMessage());
14}
15try {
16	var_dump(...new ArrayIterator([1, 2, "foo" => 3, 4]));
17} catch (Error $ex) {
18	var_dump($ex->getMessage());
19}
20
21?>
22--EXPECT--
23string(36) "Cannot unpack array with string keys"
24string(42) "Cannot unpack Traversable with string keys"
25