1--TEST--
2Named params on internal functions
3--FILE--
4<?php
5
6var_dump(array_slice(array: [1, 2, 3, 4, 5], offset: 2, length: 2));
7var_dump(array_slice(length: 2, offset: 2, array: [1, 2, 3, 4, 5]));
8
9var_dump(array_slice(array: ['a' => 0, 'b' => 1], offset: 1, preserve_keys: true));
10var_dump(array_slice(['a' => 0, 'b' => 1], preserve_keys: true, offset: 1));
11var_dump(str_pad("foo", 6, pad_type: STR_PAD_LEFT));
12
13// Named params work with specialized functions.
14var_dump(strlen(string: 'foo'));
15
16?>
17--EXPECT--
18array(2) {
19  [0]=>
20  int(3)
21  [1]=>
22  int(4)
23}
24array(2) {
25  [0]=>
26  int(3)
27  [1]=>
28  int(4)
29}
30array(1) {
31  ["b"]=>
32  int(1)
33}
34array(1) {
35  ["b"]=>
36  int(1)
37}
38string(6) "   foo"
39int(3)
40