File tree 3 files changed +26
-0
lines changed
appendices/migration70/incompatible
language/control-structures
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,16 @@ switch (1) {
361
361
</note >
362
362
</sect3 >
363
363
364
+ <sect3 xml : id =" migration70.incompatible.other.break-continue" >
365
+ <title >Misplaced break and switch statements</title >
366
+ <para >
367
+ <literal >break</literal > and <literal >continue</literal > statements outside of
368
+ a loop or <literal >switch</literal > control structure are now detected at
369
+ compile-time instead of run-time as before, and trigger an
370
+ <constant >E_COMPILE_ERROR</constant >.
371
+ </para >
372
+ </sect3 >
373
+
364
374
<sect3 xml : id =" migration70.incompatible.other.mhash" >
365
375
<title >Mhash is not an extension anymore</title >
366
376
<para >
Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ while (++$i) {
60
60
</row >
61
61
</thead >
62
62
<tbody >
63
+ <row >
64
+ <entry >7.0.0</entry >
65
+ <entry >
66
+ <literal >break</literal > outside of a loop or <literal >switch</literal >
67
+ control structure is now detected at compile-time instead of run-time as
68
+ before, and triggers an <constant >E_COMPILE_ERROR</constant >.
69
+ </entry >
70
+ </row >
63
71
<row >
64
72
<entry >5.4.0</entry >
65
73
<entry >
Original file line number Diff line number Diff line change @@ -119,6 +119,14 @@ for ($i = 0; $i < 5; ++$i) {
119
119
</row >
120
120
</thead >
121
121
<tbody >
122
+ <row >
123
+ <entry >7.0.0</entry >
124
+ <entry >
125
+ <literal >continue</literal > outside of a loop or <literal >switch</literal >
126
+ control structure is now detected at compile-time instead of run-time as
127
+ before, and triggers an <constant >E_COMPILE_ERROR</constant >.
128
+ </entry >
129
+ </row >
122
130
<row >
123
131
<entry >5.4.0</entry >
124
132
<entry >
You can’t perform that action at this time.
0 commit comments