Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: 'continue' not in the 'loop' or 'switch' context #3

Open
hellkaim opened this issue May 13, 2019 · 0 comments
Open

Comments

@hellkaim
Copy link

Dear Christopher.

Code in update.php file can't be used with PHP7.0+ version.

PHP 5.x.x, a continue statement outside a loop or switch statement DID NOT throw an error message and was syntactically okay.

PHP 7.0 and higher, a continue statement is no longer permitted outside a loop or switch statement and gives a fatal error.

So in order to patch the code 'continue' can be safely replaced by return.

Regards,
HellKaim

pespin added a commit to pespin/DigitalOcean_dyndns that referenced this issue Mar 8, 2020
pespin added a commit to pespin/DigitalOcean_dyndns that referenced this issue Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant