Req #78033 [NEW]: PDO - support username & password specified in DSN
| From: | sjon at hortensius dot net | Date: | Sun, 19 May 2019 12:59:23 +0000 |
| Subject: | Req #78033 [NEW]: PDO - support username & password specified in DSN | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-220902@lists.php.net to get a copy of this message | ||
From: sjon at hortensius dot net
Operating system: Irrelevant
PHP version: Next Major Version
Package: PDO Core
Bug Type: Feature/Change Request
Bug description:PDO - support username & password specified in DSN
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 bug report at https://bugs.php.net/bug.php?id=78033&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78033&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78033&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78033&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78033&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78033&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78033&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78033&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78033&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78033&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78033&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78033&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78033&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78033&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78033&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78033&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78033&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78033&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78033&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78033&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78033&r=mysqlcfg