note 104705 added to pdo.connections
| From: | alvaro at demogracia dot com | Date: | Fri, 01 Jul 2011 17:07:04 +0000 |
| Subject: | note 104705 added to pdo.connections | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181143@lists.php.net to get a copy of this message | ||
On connection errors, the PDO constructor seems to do two things no matter your PDO::ATTR_ERRMODE
setting:
1. Trigger a warning
2. Throw a PDOException
If you set the PDO::ATTR_ERRMODE parameter, it will only take effect on further operations.
----
Server IP: 80.64.47.13
Probable Submitter: 84.125.85.118
----
Manual Page -- http://www.php.net/manual/en/pdo.connections.php
Edit -- https://master.php.net/note/edit/104705
Del: integrated -- https://master.php.net/note/delete/104705/integrated
Del: useless -- https://master.php.net/note/delete/104705/useless
Del: bad code -- https://master.php.net/note/delete/104705/bad+code
Del: spam -- https://master.php.net/note/delete/104705/spam
Del: non-english -- https://master.php.net/note/delete/104705/non-english
Del: in docs -- https://master.php.net/note/delete/104705/in+docs
Del: other reasons-- https://master.php.net/note/delete/104705
Reject -- https://master.php.net/note/reject/104705
Search -- https://master.php.net/manage/user-notes.php