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

PHP warning on MySQLi connection failure

XMLWordPrintable

      If mysqli_real_connect fails to establish a connection to a MySQL database engine, PHP warning is thrown:

       

      [phpBB debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 367: Attempt to read property "connect_error" on string
      [phpBB debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 368: Attempt to read property "connect_errno" on string

      This is caused by setting the db_connect_id property to an empty string in case of connection failure.

            Unassigned Unassigned
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: