summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdo/tests/pdo_test.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/tests/pdo_test.inc b/ext/pdo/tests/pdo_test.inc
index b571cab60b..7669b93c46 100644
--- a/ext/pdo/tests/pdo_test.inc
+++ b/ext/pdo/tests/pdo_test.inc
@@ -9,12 +9,12 @@ class PDOTest {
$user = getenv('PDOTEST_USER');
$pass = getenv('PDOTEST_PASS');
$attr = getenv('PDOTEST_ATTR');
- if (is_string($attr)) {
+ if (is_string($attr) && strlen($attr)) {
$attr = unserialize($attr);
} else {
$attr = null;
}
-
+
$db = new $classname($dsn, $user, $pass, $attr);
// clean up any crufty test tables we might have left behind