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(
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php