Disallow declarations outside of the global scope.
[hiphop-php.git] / hphp / test / slow / inout / tuple / tests / invalid-index.php.expectf
blob46a83a139b44314ddbe2892a2684bbf9410be3ee
2 Notice: Undefined index on inout parameter: 10 in %s/invalid-index.php on line 7
3 NULL
5 Notice: Undefined index on inout parameter: banana in %s/invalid-index.php on line 8
6 NULL
7 int(5)
9 Notice: Undefined index on inout parameter: 50 in %s/invalid-index.php on line 12
10 string(85) "Parameters marked inout must be contained in locals, vecs, dicts, keysets, and arrays"
11 NULL
12 NULL
13 array(4) {
14   ["apple"]=>
15   array(2) {
16     ["orange"]=>
17     int(12)
18     ["banana"]=>
19     int(12)
20   }
21   [10]=>
22   int(12)
23   [1]=>
24   int(12)
25   [5]=>
26   array(1) {
27     [10]=>
28     int(12)
29   }
32 Notice: Undefined index on inout parameter: 10 in %s/invalid-index.php on line 23
33 NULL
35 Notice: Undefined index on inout parameter: banana in %s/invalid-index.php on line 31
36 NULL
37 int(5)
39 Notice: Undefined index on inout parameter: 50 in %s/invalid-index.php on line 31
40 Caught: Parameters marked inout must be contained in locals, vecs, dicts, keysets, and arrays
41 NULL
42 NULL
43 array(4) {
44   ["apple"]=>
45   array(2) {
46     ["orange"]=>
47     int(12)
48     ["banana"]=>
49     int(12)
50   }
51   [10]=>
52   int(12)
53   [1]=>
54   int(12)
55   [5]=>
56   array(1) {
57     [10]=>
58     int(12)
59   }
61 Caught: Out of bounds dict access: invalid index 10
63 Notice: Undefined index on inout parameter: banana in %s/invalid-index.php on line 31
64 NULL
65 int(5)
66 Caught: Out of bounds dict access: invalid index 50
67 Caught: Dicts cannot contain references
68 Caught: Out of bounds dict access: invalid index 5
69 dict(1) {
70   ["apple"]=>
71   array(2) {
72     ["orange"]=>
73     int(12)
74     ["banana"]=>
75     int(12)
76   }
78 Caught: Parameters marked inout must be contained in locals, vecs, dicts, keysets, and arrays
79 Caught: Parameters marked inout must be contained in locals, vecs, dicts, keysets, and arrays
80 int(0)
81 Caught: Invalid operation on keyset
82 Caught: Out of bounds keyset access: invalid index 50
83 Caught: Out of bounds keyset access: invalid index 50
84 int(1)
85 Caught: Out of bounds vec access: invalid index 100
86 vec(3) {
87   int(0)
88   int(12)
89   int(2)
91 Caught: Out of bounds vec access: invalid index 50
92 Caught: Out of bounds vec access: invalid index 50