cvs: php-src /ext/pdo/tests pdo_test.inc

From: Date: Sun, 11 Dec 2005 15:24:38 +0000
Subject: cvs: php-src /ext/pdo/tests pdo_test.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-35871@lists.php.net to get a copy of this message
helly Sun Dec 11 15:24:38 2005 EDT Modified files: /php-src/ext/pdo/tests pdo_test.inc Log: - Show an error if no pdo object can be created http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_test.inc?r1=1.11&r2=1.12&ty=u Index: php-src/ext/pdo/tests/pdo_test.inc diff -u php-src/ext/pdo/tests/pdo_test.inc:1.11 php-src/ext/pdo/tests/pdo_test.inc:1.12 --- php-src/ext/pdo/tests/pdo_test.inc:1.11 Wed Sep 21 18:49:37 2005 +++ php-src/ext/pdo/tests/pdo_test.inc Sun Dec 11 15:24:38 2005 @@ -35,6 +35,10 @@ $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(

« previous php.cvs (#35871) next »