File tree Expand file tree Collapse file tree 18 files changed +128
-14
lines changed Expand file tree Collapse file tree 18 files changed +128
-14
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,23 @@ var_dump($a->$b->{$c[1]});
16
16
?>
17
17
--EXPECTF--
18
18
Notice: Undefined variable: a in %s on line %d
19
+
20
+ Notice: Trying to access array offset on value of type null in %s on line %d
19
21
NULL
20
22
21
- Notice: Undefined variable: %s in %s on line %d
23
+ Notice: Undefined variable: a in %s on line %d
24
+
25
+ Notice: Undefined variable: c in %s on line %d
22
26
23
- Notice: Undefined variable: %s in %s on line %d
27
+ Notice: Trying to access array offset on value of type null in %s on line %d
24
28
NULL
25
29
26
30
Notice: Undefined variable: a in %s on line %d
27
31
int(1)
28
32
29
- Notice: Undefined variable: %s in %s on line %d
33
+ Notice: Undefined variable: a in %s on line %d
30
34
31
- Notice: Undefined variable: %s in %s on line %d
35
+ Notice: Undefined variable: b in %s on line %d
32
36
int(0)
33
37
34
38
Notice: Undefined variable: a in %s on line %d
45
49
46
50
Notice: Undefined variable: c in %s on line %d
47
51
52
+ Notice: Trying to access array offset on value of type null in %s on line %d
53
+
48
54
Notice: Trying to get property '1' of non-object in %s on line %d
49
55
50
56
Notice: Trying to get property '' of non-object in %s on line %d
Original file line number Diff line number Diff line change @@ -19,10 +19,40 @@ $arr[][]->bar = 2;
19
19
--EXPECTF--
20
20
Notice: Undefined variable: arr in %s on line %d
21
21
22
+ Notice: Trying to access array offset on value of type null in %s on line %d
23
+
24
+ Notice: Trying to access array offset on value of type null in %s on line %d
25
+
26
+ Notice: Trying to access array offset on value of type null in %s on line %d
27
+
28
+ Notice: Trying to access array offset on value of type null in %s on line %d
29
+
30
+ Notice: Trying to access array offset on value of type null in %s on line %d
31
+
22
32
Notice: Undefined variable: arr in %s on line %d
23
33
34
+ Notice: Trying to access array offset on value of type null in %s on line %d
35
+
36
+ Notice: Trying to access array offset on value of type null in %s on line %d
37
+
38
+ Notice: Trying to access array offset on value of type null in %s on line %d
39
+
40
+ Notice: Trying to access array offset on value of type null in %s on line %d
41
+
42
+ Notice: Trying to access array offset on value of type null in %s on line %d
43
+
24
44
Notice: Undefined variable: arr in %s on line %d
25
45
46
+ Notice: Trying to access array offset on value of type null in %s on line %d
47
+
48
+ Notice: Trying to access array offset on value of type null in %s on line %d
49
+
50
+ Notice: Trying to access array offset on value of type null in %s on line %d
51
+
52
+ Notice: Trying to access array offset on value of type null in %s on line %d
53
+
54
+ Notice: Trying to access array offset on value of type null in %s on line %d
55
+
26
56
Notice: Trying to get property 'foo' of non-object in %s on line %d
27
57
28
58
Warning: Creating default object from empty value in %s on line %d
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ var_dump($var1);
12
12
13
13
echo "Done \n" ;
14
14
?>
15
- --EXPECT--
15
+ --EXPECTF--
16
+ Notice: Trying to access array offset on value of type float in %s on line %d
16
17
NULL
17
18
NULL
18
19
Done
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ var_dump($a);
13
13
--EXPECTF--
14
14
Notice: Undefined offset: 0 in %s on line %d
15
15
16
+ Notice: Trying to access array offset on value of type null in %s on line %d
17
+
16
18
Warning: Parameter 1 to foo() expected to be a reference, value given in %s on line %d
17
19
array(0) {
18
20
}
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ array(2) {
69
69
int(5)
70
70
}
71
71
int(1)
72
+
73
+ Notice: Trying to access array offset on value of type int in %s on line %d
72
74
NULL
73
75
74
76
Notice: Undefined offset: 4 in %s on line %d
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ var_dump(b()[1]);
21
21
22
22
?>
23
23
--EXPECTF--
24
+ Notice: Trying to access array offset on value of type int in %s on line %d
24
25
NULL
26
+
27
+ Notice: Trying to access array offset on value of type int in %s on line %d
25
28
NULL
26
29
27
30
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in %s:%d
Original file line number Diff line number Diff line change @@ -27,8 +27,12 @@ var_dump($h);
27
27
28
28
?>
29
29
--EXPECTF--
30
+ Notice: Trying to access array offset on value of type null in %s on line %d
31
+
30
32
Notice: Trying to get property 'a' of non-object in %s on line %d
31
33
NULL
32
34
35
+ Notice: Trying to access array offset on value of type null in %s on line %d
36
+
33
37
Notice: Trying to get property 'b' of non-object in %s on line %d
34
38
NULL
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ Notice: Undefined variable: c in %s on line %d
33
33
34
34
Notice: Undefined variable: d in %s on line %d
35
35
36
+ Notice: Trying to access array offset on value of type null in %s on line %d
37
+
36
38
Notice: Trying to get property '' of non-object in %s on line %d
37
39
bool(false)
38
40
bool(true)
Original file line number Diff line number Diff line change @@ -24,14 +24,31 @@ var_dump($bool[$arr]);
24
24
25
25
echo "Done \n" ;
26
26
?>
27
- --EXPECT--
27
+ --EXPECTF--
28
+ Notice: Trying to access array offset on value of type bool in %s on line %d
28
29
NULL
30
+
31
+ Notice: Trying to access array offset on value of type bool in %s on line %d
29
32
NULL
33
+
34
+ Notice: Trying to access array offset on value of type bool in %s on line %d
30
35
NULL
36
+
37
+ Notice: Trying to access array offset on value of type bool in %s on line %d
31
38
NULL
39
+
40
+ Notice: Trying to access array offset on value of type bool in %s on line %d
32
41
NULL
42
+
43
+ Notice: Trying to access array offset on value of type bool in %s on line %d
33
44
NULL
45
+
46
+ Notice: Trying to access array offset on value of type bool in %s on line %d
34
47
NULL
48
+
49
+ Notice: Trying to access array offset on value of type bool in %s on line %d
35
50
NULL
51
+
52
+ Notice: Trying to access array offset on value of type bool in %s on line %d
36
53
NULL
37
54
Done
Original file line number Diff line number Diff line change @@ -24,14 +24,31 @@ var_dump($long[$arr]);
24
24
25
25
echo "Done \n" ;
26
26
?>
27
- --EXPECT--
27
+ --EXPECTF--
28
+ Notice: Trying to access array offset on value of type int in %s on line %d
28
29
NULL
30
+
31
+ Notice: Trying to access array offset on value of type int in %s on line %d
29
32
NULL
33
+
34
+ Notice: Trying to access array offset on value of type int in %s on line %d
30
35
NULL
36
+
37
+ Notice: Trying to access array offset on value of type int in %s on line %d
31
38
NULL
39
+
40
+ Notice: Trying to access array offset on value of type int in %s on line %d
32
41
NULL
42
+
43
+ Notice: Trying to access array offset on value of type int in %s on line %d
33
44
NULL
45
+
46
+ Notice: Trying to access array offset on value of type int in %s on line %d
34
47
NULL
48
+
49
+ Notice: Trying to access array offset on value of type int in %s on line %d
35
50
NULL
51
+
52
+ Notice: Trying to access array offset on value of type int in %s on line %d
36
53
NULL
37
54
Done
You can’t perform that action at this time.
0 commit comments