File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
CodeSniffer/Standards/PEAR/Tests/WhiteSpace Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -88,4 +88,12 @@ switch ($httpResponseCode) {
88
88
switch ($ i ) {
89
89
case 1 : {}
90
90
}
91
- ?>
91
+
92
+ switch ($ httpResponseCode ) {
93
+ case 100 :
94
+ case 101 :
95
+ case 102 :
96
+ exit ;
97
+ default :
98
+ exit ;
99
+ }
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public function getErrorList()
50
50
65 => 1 ,
51
51
85 => 1 ,
52
52
89 => 1 ,
53
+ 98 => 1 ,
53
54
);
54
55
55
56
}//end getErrorList()
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
34
34
-- Thanks to Antoine Musso for the patch
35
35
- Comment parser now supports non-English characters when splitting comment lines into words
36
36
-- Thanks to Nik Sun for the patch
37
+ - Exit statements are now recognised as valid closers for CASE and DEFAULT blocks
37
38
- Fixed bug #20097 : CLI.php throws error in php 5.2
38
39
- Fixed bug #20100 : incorrect Function mysql() has been deprecated report
39
40
</notes >
You can’t perform that action at this time.
0 commit comments