note 106495 deleted from ref.pdo-pgsql.connection by danbrown
| From: | danbrown@php.net | Date: | Tue, 15 Nov 2011 16:27:59 +0000 |
| Subject: | note 106495 deleted from ref.pdo-pgsql.connection by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184475@lists.php.net to get a copy of this message | ||
Note Submitter: OOPer
----
PDO does NOT ignore the value of the user name or the password argument in the PDO constructor, if
supplied explicitly.
The following code does not work as described.
$db = new PDO('pgsql:host=localhost;port=5432;dbname=testdb;user=bruce;password=mypass'
,'', '');