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
From: michael dot mauch at gmx dot de Assigned:
Status: Open Package: PDO PgSQL
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Dec 19 03:01:26 2018 UTC