-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0-dev
-
None
-
None
Due to the fact that db implicitly depends on cache which is not available yet during container construction, it results in a fatal error:
( ! ) Fatal error: Call to a member function sql_exists() on a non-object in /var/www/qi/boards/z11/includes/db/mysql.php on line 252
MySQLi does not have this problem, because of an extra check that is mostly coincidental, which prevents the cache to be hit.
We should make cache available during container construction. The real fix is to inject the cache to the db properly or even decouple it completely and wrap a cached db driver decorator around the db connection.
- is related to
-
PHPBB-11203 Rewrite dbal to not use global $cache
- Closed
- was caused by solution of
-
PHPBB-11152 Create cached, compiled container class rather than compiling it on every page load
- Unverified Fix