]> granicus.if.org Git - php/commitdiff
- MFH
authorMarcus Boerger <helly@php.net>
Sun, 11 Dec 2005 15:29:14 +0000 (15:29 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 11 Dec 2005 15:29:14 +0000 (15:29 +0000)
ext/pdo/tests/pdo_test.inc

index 3a3040eac59f6705198917bd558f1bb844480818..a023fd89bb4ba95f9ec1aaf0f488f0678f93c0f8 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(