Req #78033 [Asn->Csd]: PDO - support username & password specified in DSN
| From: | sjon@php.net | Date: | Tue, 02 Jul 2019 10:42:12 +0000 |
| Subject: | Req #78033 [Asn->Csd]: PDO - support username & password specified in DSN | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221580@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78033&edit=1
ID: 78033
Updated by: sjon@php.net
Reported by: sjon at hortensius dot net
Summary: PDO - support username & password specified in DSN
-Status: Assigned
+Status: Closed
Type: Feature/Change Request
Package: PDO Core
Operating System: Irrelevant
-PHP Version: Next Major Version
+PHP Version: 7.4.0alpha3
Assigned To: sjon
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2019-05-19 13:51:41] 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
------------------------------------------------------------------------
[2019-05-19 12:59:23] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78033&edit=1