Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12802

Properly handle connection errors in SQLite3

    XMLWordPrintable

Details

    Description

      The try/catch block in sql_connect() is catching a namespaced version of Exception instead of the standard class. Additionally, the calls to sql_connect() don't actually use the return value, so the connection error needs to be stored in connect_error since SQLite can't be queried later for the last error in this state.

      Attachments

        Activity

          People

            nicofuma nicofuma [X] (Inactive)
            Noxwizard Patrick Webster
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: