note 104705 deleted from pdo.connections by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:54:50 +0000 |
| Subject: | note 104705 deleted from pdo.connections by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215372@lists.php.net to get a copy of this message | ||
Note Submitter: alvaro at demogracia dot com
----
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.