You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pdo_pgsql constructor behavior differs from documentation #12423
Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] connection to server at "<host>" (<host IP>), port 5432 failed: FATAL: no pg_hba.conf entry for host "<client IP>", user "hoge", database "db", SSL encryption
connection to server at "<host>" (<host IP>), port 5432 failed: FATAL: no pg_hba.conf entry for host "<client IP>", user "hoge", database "db", no encryption in <path to file>:8
Stack trace:
#0 <path to file>(8): PDO->__construct('pgsql:host=<host>.....', 'hoge', Object(SensitiveParameterValue))
#1 {main}
thrown in <path to file> on line 8
This result means that if both the DSN and the argument are given different credentials, the DSN's credentials are ignored and the argument's credentials are used.
Also, pdo_odbc can similarly pass credentials to both DSN and arguments, but pdo_odbc gives priority to DSN. Based on these things, I think that the behavior of pdo_pgsql should be modified.
Activity
bug #52457 [Cache][HttpFoundation][Lock] Fix empty username/password …
bug #52457 [Cache][HttpFoundation][Lock] Fix empty username/password …
Fix phpGH-12423: Changed to prioritize DSN authentication information…