Page 1 of 1

Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“?

Posted: Thu 4. Jul 2019, 19:37
by Uwe367
Hallo allerseits,
Ich habe heute bei einer Installation, die nun etwa 2 Jahre läuft (phpwcms 1.9.0-beta.8 (2017/09/14, r549), folgende Warning unter PHP 7.3 erhalten:
Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“? in include/inc_front/content/cnt23.article.inc.php on line 1470
Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“? in include/inc_front/content/cnt23.article.inc.php on line 1473

Nachdem ich ein wenig nach dieser Meldung recherchierte und in den enstsprechenden Zeilen continue durch break ersetzte, sind die Warnings weg und die Seite läuft ganz normal. Aber ist das so ok mit dieser Lösung oder kann es da anderweitig zu Problemen kommen?

Re: Warning: „continue“ targeting switch is equivalent to „break“. Did you mean to use „continue 2“?

Posted: Thu 4. Jul 2019, 22:16
by Oliver Georgi