php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78033 PDO - support username & password specified in DSN
Submitted: 2019-05-19 12:59 UTC Modified: 2019-05-19 13:00 UTC
From: sjon at hortensius dot net Assigned: sjon (profile)
Status: Assigned Package: PDO Core
PHP Version: Next Major Version OS: Irrelevant
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: sjon at hortensius dot net
New email:
PHP Version: OS:

 

 [2019-05-19 12:59 UTC] sjon at hortensius dot net
Description:
------------
PDO should support user and password being specified in the DSN instead of separate constructor parameters. This can be implemented backwards compatible, by ignoring the credentials in DSN when separate constructor parameters are passed.

This additionally allows a security feature where user-space is unable to read the credentials but PDO is able to connect anyway.

Test script:
---------------
Implementation in https://github.com/php/php-src/pull/2684


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-19 13:00 UTC] sjon@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: sjon
 [2019-05-19 13:51 UTC] petk@php.net
The following pull request has been associated:

Patch Name: PDO - support username & password specified in DSN
On GitHub:  https://github.com/php/php-src/pull/2684
Patch:      https://github.com/php/php-src/pull/2684.patch
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 20:01:27 2019 UTC