RocketMan / zookeeper

Zookeeper Online is a music database and charting application for student and independent radio.
GNU General Public License v3.0
4 stars 3 forks source link

REGRESSION(PHP 8): chart generation raises exception #426

Closed RocketMan closed 10 months ago

RocketMan commented 10 months ago

Airplay charts are generated using a database transaction when available. The application will silently fall back to implicit commit if the database does not support transactions, such as the case with MySQL MyISAM tables (the reference implementation).

Effective PHP 8.0, an exception is raised when transaction support is unavailable: PHP Fatal error: Uncaught PDOException: There is no active transaction

This is a known issue. See: Migrating from PHP 7.4 to 8.0

Expected: PHP 8 and later should continue legacy behaviour and fall back silently to implicit commit when transactions are not supported.

RocketMan commented 10 months ago

Resolved in d58d1f4.