stable

Clone or download

Read-only

Fix site banner REST endpoint under PHP 8.0

`TRUNCATE TABLE ...` is a DDL statement and DDL statement cannot be rolled back with MySQL and causes an autocommit. PDO is a bit stricter under PHP 8.0 about this so this cause the REST tests to crash. Note that even before PHP 8.0 the transactions were useless since the first query closed them. Part of story #21342: auto disable site banner after a given time Part of request #21863: Run REST tests under PHP 8.0 Change-Id: Ie0f0fb095e01665136e3755cf7467a95e0a7df7c

Modified Files

Name
M src/common/Platform/Banner/BannerDao.php +2 −2 Go to diff View file