summaryrefslogtreecommitdiff
path: root/Zend/tests/024.phpt
blob: 9e647d4231d0ae643eeeb5bd936d5cedc3ef8543 (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--
Notice: Undefined variable: a in %s on line %d

Notice: Trying to access array offset on value of type null in %s on line %d
NULL

Notice: Undefined variable: a in %s on line %d

Notice: Undefined variable: c in %s on line %d

Notice: Trying to access array offset on value of type null in %s on line %d
NULL

Notice: Undefined variable: a in %s on line %d
int(1)

Notice: Undefined variable: a in %s on line %d

Notice: Undefined variable: b in %s on line %d
int(0)

Notice: Undefined variable: a in %s on line %d
NULL

Notice: Undefined variable: b in %s on line %d
int(1)

Notice: Trying to get property '1' of non-object in %s on line %d
NULL

Notice: Trying to get property '1' of non-object in %s on line %d
NULL

Notice: Undefined variable: c in %s on line %d

Notice: Trying to access array offset on value of type null in %s on line %d

Notice: Trying to get property '1' of non-object in %s on line %d

Notice: Trying to get property '' of non-object in %s on line %d
NULL