From: Marcus Boerger Date: Sun, 11 Dec 2005 15:24:38 +0000 (+0000) Subject: - Show an error if no pdo object can be created X-Git-Tag: RELEASE_1_0_4~415 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f8491c2fa5b838fbb1962beacfbca9cc12a838b;p=php - Show an error if no pdo object can be created --- 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(