Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9640

Database version cache key is non-unique

    XMLWordPrintable

Details

    Description

      $db->sql_server_info() uses something like this to cache the database version in phpBB's cache.

      $cache->put('mysqli_version', $this->sql_server_version);
      $cache->get('mysqli_version')

      This will generally only work if you only have one database of the type mysqli, which basically breaks the whole object oriented approach of the dbal.

      The cache key should probably be changed to something more unique, like

      md5($dbms . $this->server . $this->dbname . $port);

      Attachments

        Issue Links

          Activity

            People

              bantu Andreas Fischer [X] (Inactive)
              bantu Andreas Fischer [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: