Req #78033 [Opn->Asn]: PDO - support username & password specified in DSN
| From: | sjon@php.net | Date: | Sun, 19 May 2019 13:00:55 +0000 |
| Subject: | Req #78033 [Opn->Asn]: PDO - support username & password specified in DSN | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220903@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: Open
+Status: Assigned
Type: Feature/Change Request
Package: PDO Core
Operating System: Irrelevant
PHP Version: Next Major Version
-Assigned To:
+Assigned To: sjon
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[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