Initial PDO Exception
| From: | Lester Caine | Date: | Sun, 13 Feb 2005 09:15:15 +0000 |
| Subject: | Initial PDO Exception | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1982@lists.php.net to get a copy of this message | ||
From samples
<?php
try
{
$dbh = new PDO("OCI:dbname=accounts;charset=UTF-8", "scott", "tiger");
}
catch (PDOException $e)
{
echo "Failed to obtain database handle " . $e->getMessage();
}
?>
How do I get this to report the exception if the new default for exceptions is 'silent'?
SOME errors correctly trigger the catch (wrong driver name, missing ini section) while others remain silent and there is no $dbh to ask why.
(pdo_firebird)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services