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

PHP8 Error handling and mitigation #708

Open
Phencys opened this issue Sep 16, 2024 · 0 comments
Open

PHP8 Error handling and mitigation #708

Phencys opened this issue Sep 16, 2024 · 0 comments
Labels
Bug Something isn't working Enhancement New feature or request High priority
Milestone

Comments

@Phencys
Copy link
Collaborator

Phencys commented Sep 16, 2024

With the upgrade to PHP8.x, much more strict runtime requirements have been activated as well.

As it seems there is no effictive way to handle runtime failures, other than through a shutdown_function, all data accesses will need to be guarded against undefined accesses.

This includes, but is not limited to:

  • Array indices
  • DOM element indices
  • Parameters to internal PHP functions such as
    • count()
    • array_key_exists()
    • etc...

As an extra precaution, we should look into defining types for all function parameters, as this will greatly decrease the amount of options for failures as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Enhancement New feature or request High priority
Projects
None yet
Development

No branches or pull requests

1 participant