]> granicus.if.org Git - php/commitdiff
- Show an error if no pdo object can be created
authorMarcus Boerger <helly@php.net>
Sun, 11 Dec 2005 15:24:38 +0000 (15:24 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 11 Dec 2005 15:24:38 +0000 (15:24 +0000)
ext/pdo/tests/pdo_test.inc

index 94fa9fbbfaa51a18944ee80a3a1e0071cd1b26dc..2004abf97695b706f4418fbead8c5a4f87c8c925 100644 (file)
@@ -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(