import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-array / array_map_variation10.php.expectf
blob61b7c6067e98015ea767da6f8afff8274ec4df0e
1 *** Testing array_map() : anonymous callback function ***
2 -- anonymous function with all parameters and body --
3 array(3) {
4   [0]=>
5   array(2) {
6     [0]=>
7     int(1)
8     [1]=>
9     int(3)
10   }
11   [1]=>
12   array(2) {
13     [0]=>
14     int(2)
15     [1]=>
16     int(4)
17   }
18   [2]=>
19   array(2) {
20     [0]=>
21     int(3)
22     [1]=>
23     int(5)
24   }
26 -- anonymous function with two parameters and passing one array --
27 HipHop Warning: %a
28 HipHop Notice: %a
29 HipHop Warning: %a
30 HipHop Notice: %a
31 HipHop Warning: %a
32 HipHop Notice: %a
33 array(3) {
34   [0]=>
35   array(2) {
36     [0]=>
37     int(1)
38     [1]=>
39     NULL
40   }
41   [1]=>
42   array(2) {
43     [0]=>
44     int(2)
45     [1]=>
46     NULL
47   }
48   [2]=>
49   array(2) {
50     [0]=>
51     int(3)
52     [1]=>
53     NULL
54   }
56 -- anonymous function with NULL parameter --
57 array(3) {
58   [0]=>
59   NULL
60   [1]=>
61   NULL
62   [2]=>
63   NULL
65 -- anonymous function with NULL body --
66 array(3) {
67   [0]=>
68   NULL
69   [1]=>
70   NULL
71   [2]=>
72   NULL
74 -- passing NULL as 'arr1' --
75 HipHop Warning: %a
76 NULL
77 Done