Skip to content

PHP8 Error handling and mitigation #708

@Phencys

Description

@Phencys

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions