blob: d4e34972ee0c58fb7caa1cc46d1ef27d1b3946b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
--TEST--
Testing operations with undefined variable
--FILE--
<?php
var_dump($a[1]);
var_dump($a[$c]);
var_dump($a + 1);
var_dump($a + $b);
var_dump($a++);
var_dump(++$b);
var_dump($a->$b);
var_dump($a->$b);
var_dump($a->$b->{$c[1]});
?>
--EXPECTF--
Warning: Undefined variable: a in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d
NULL
Warning: Undefined variable: a in %s on line %d
Warning: Undefined variable: c in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d
NULL
Warning: Undefined variable: a in %s on line %d
int(1)
Warning: Undefined variable: a in %s on line %d
Warning: Undefined variable: b in %s on line %d
int(0)
Warning: Undefined variable: a in %s on line %d
NULL
Warning: Undefined variable: b in %s on line %d
int(1)
Warning: Trying to get property '1' of non-object in %s on line %d
NULL
Warning: Trying to get property '1' of non-object in %s on line %d
NULL
Warning: Undefined variable: c in %s on line %d
Warning: Trying to access array offset on value of type null in %s on line %d
Warning: Trying to get property '1' of non-object in %s on line %d
Warning: Trying to get property '' of non-object in %s on line %d
NULL
|