@@ -12,34 +12,8 @@ var_dump(isset($string[0][0]));
12
12
var_dump ($ string ["foo " ]);
13
13
var_dump (isset ($ string ["foo " ]["bar " ]));
14
14
15
- const FOO_DEPRECATED = "BAR " {0 };
16
- var_dump (FOO_DEPRECATED );
17
- var_dump ([$ string {0 }]); // 1 notice
18
- var_dump($ string {1 });
19
- var_dump(isset($ string {0 }));
20
- var_dump(isset($ string {0 }{0 })); // 2 notices
21
- var_dump($ string {"foo"});
22
- var_dump(isset($ string {"foo"}{"bar"})); // 2 notices
23
15
?>
24
16
--EXPECTF--
25
-
26
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
27
-
28
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
29
-
30
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
31
-
32
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
33
-
34
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
35
-
36
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
37
-
38
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
39
-
40
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
41
-
42
- Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
43
17
string(1) "B"
44
18
string(1) "f"
45
19
string(1) "o"
@@ -49,15 +23,3 @@ bool(true)
49
23
Warning: Illegal string offset 'foo' in %s line %d
50
24
string(1) "f"
51
25
bool(false)
52
- string(1) "B"
53
- array(1) {
54
- [0]=>
55
- string(1) "f"
56
- }
57
- string(1) "o"
58
- bool(true)
59
- bool(true)
60
-
61
- Warning: Illegal string offset 'foo' in %s line %d
62
- string(1) "f"
63
- bool(false)
0 commit comments