From 3f8491c2fa5b838fbb1962beacfbca9cc12a838b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 11 Dec 2005 15:24:38 +0000 Subject: [PATCH] - Show an error if no pdo object can be created --- ext/pdo/tests/pdo_test.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/pdo/tests/pdo_test.inc b/ext/pdo/tests/pdo_test.inc index 94fa9fbbfa..2004abf976 100644 --- a/ext/pdo/tests/pdo_test.inc +++ b/ext/pdo/tests/pdo_test.inc @@ -35,6 +35,10 @@ class PDOTest { $db = new $classname($dsn, $user, $pass, $attr); + if (!$db) { + die("Could not create PDO object (DSN=$dsn, user=$user)\n"); + } + // clean up any crufty test tables we might have left behind // on a previous run static $test_tables = array( -- 2.40.0