diff options
Diffstat (limited to 'ext/pdo_oci/tests/checkliveness.phpt')
-rw-r--r-- | ext/pdo_oci/tests/checkliveness.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_oci/tests/checkliveness.phpt b/ext/pdo_oci/tests/checkliveness.phpt index 4bb070f40d..293a26b566 100644 --- a/ext/pdo_oci/tests/checkliveness.phpt +++ b/ext/pdo_oci/tests/checkliveness.phpt @@ -19,7 +19,7 @@ $attr = getenv('PDOTEST_ATTR'); try { $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); -} +} catch (PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); exit; @@ -28,7 +28,7 @@ catch (PDOException $e) { // This triggers the call to check liveness try { $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); -} +} catch (PDOException $e) { echo 'Connection failed: ' . $e->getMessage(); exit; |