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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Mon Dec 10 08:01:24 2018 UTC