Dash-Industry-Forum / DASH-IF-Conformance

This repository provides the source code for MPEG-DASH/DASH-IF Conformance Software/Validator. It has been extended according to further standards, such as CMAF, DVB-DASH, HbbTV, and CTA WAVE.
https://conformance.dashif.org/
Other
68 stars 28 forks source link

PHP8 Error handling and mitigation #708

Open Phencys opened 2 months ago

Phencys commented 2 months ago

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:

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.