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

Connecting to PostgreSQL using 'localhost' doesn't try to use a TCP connection

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.8-RC1
    • Labels:
      None
    • Environment:
      PHP Environment: 5.2.3
      Database: PostgreSQL 8.2.5

      Description

      Details – http://develobert.blogspot.com/2007/12/phpbb3-postgresql-connection-failure.html

      It seems that some setups want to know the host name when connecting even if it's localhost.
      Right now the postgres layer specificly omits the host argument if the one entered is localhost.

        Issue Links

          Activity

          Hide
          bantu Andreas Fischer added a comment -

          I would like to change it so it first tries to connect via a UNIX socket, if that fails it should try to use a TCP connection.

          This is the only way to keep backwards compatibility.

          Show
          bantu Andreas Fischer added a comment - I would like to change it so it first tries to connect via a UNIX socket, if that fails it should try to use a TCP connection. This is the only way to keep backwards compatibility.
          Hide
          Oleg Oleg [X] (Inactive) added a comment -

          There is a very simple solution to this, which is specifying 127.0.0.1 for the host name if you want a TCP connection.

          I just tested it on 3.0.7 and it works.

          Show
          Oleg Oleg [X] (Inactive) added a comment - There is a very simple solution to this, which is specifying 127.0.0.1 for the host name if you want a TCP connection. I just tested it on 3.0.7 and it works.
          Hide
          Oleg Oleg [X] (Inactive) added a comment -

          This is a documentation patch. It adds an explanation of localhost/127.0.0.1 to the database server explanation text in install process.

          Show
          Oleg Oleg [X] (Inactive) added a comment - This is a documentation patch. It adds an explanation of localhost/127.0.0.1 to the database server explanation text in install process.
          Hide
          bantu Andreas Fischer added a comment -

          Great. Fine with me.

          Show
          bantu Andreas Fischer added a comment - Great. Fine with me.
          Hide
          naderman Nils Adermann added a comment -

          Removed unecessary (merge) commits. Modified commit message to reference ticket/ instead of old bug/

          Show
          naderman Nils Adermann added a comment - Removed unecessary (merge) commits. Modified commit message to reference ticket/ instead of old bug/

            People

            • Assignee:
              bantu Andreas Fischer
              Reporter:
              joebert joebert
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development