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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 14 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC