xref: /PHP-7.2/ext/standard/tests/array/bug23581.phpt (revision f1d7e3ca)
1--TEST--
2Bug #23581 (array_map(NULL, array, array, ...) yields an undefined result)
3--FILE--
4<?php
5var_dump(
6  array_map(
7    NULL,
8    array(1,2,3),
9    array(4,5,6),
10    array(7,8,9)
11  )
12);
13?>
14--EXPECT--
15array(3) {
16  [0]=>
17  array(3) {
18    [0]=>
19    int(1)
20    [1]=>
21    int(4)
22    [2]=>
23    int(7)
24  }
25  [1]=>
26  array(3) {
27    [0]=>
28    int(2)
29    [1]=>
30    int(5)
31    [2]=>
32    int(8)
33  }
34  [2]=>
35  array(3) {
36    [0]=>
37    int(3)
38    [1]=>
39    int(6)
40    [2]=>
41    int(9)
42  }
43}
44