1--TEST--
2list() with both keyed and unkeyed elements
3--FILE--
4<?php
5
6$contrivedKeyedAndUnkeyedArrayExample = [
7    0,
8    1 => 1,
9    "foo" => "bar"
10];
11
12list($zero, 1 => $one, "foo" => $foo) = $contrivedKeyedAndUnkeyedArrayExample;
13
14?>
15--EXPECTF--
16Fatal error: Cannot mix keyed and unkeyed array entries in assignments in %s on line %d
17