php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76830 PDO_PGSQL DSN could have "sslmode" documented
Submitted: 2018-08-31 21:55 UTC Modified: 2018-09-01 21:13 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: michael dot mauch at gmx dot de Assigned:
Status: Closed Package: PDO PgSQL
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael dot mauch at gmx dot de
New email:
PHP Version: OS:

 

 [2018-08-31 21:55 UTC] michael dot mauch at gmx dot de
Description:
------------
It would be nice if http://php.net/manual/en/ref.pdo-pgsql.connection.php would tell users that they can add the option "sslmode" to the DSN. At the moment it's only mentioned in a user comment.

https://www.postgresql.org/docs/current/static/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS shows the valid sslmode values (like "sslmode=require").


Expected result:
----------------
Maybe something like this could be added to that page:

If you want to use encryption, you can add the option "sslmode" to the DSN. It must have a value shown in https://www.postgresql.org/docs/current/static/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS (e.g. "sslmode=require").


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-01 21:13 UTC] cmb@php.net
-Package: Documentation problem +Package: PDO PgSQL
 [2021-11-08 13:32 UTC] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/a0f0f0446d4327a1c7a48ea7ee3502b6ebec56b8
Log: Fix #76830: PDO_PGSQL DSN could have "sslmode" documented
 [2021-11-08 13:32 UTC] git@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 10:01:38 2025 UTC