summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-07 13:56:09 +0000
committerWez Furlong <wez@php.net>2005-07-07 13:56:09 +0000
commit1095da42e008c025fd04283e8a637c631455926c (patch)
treea34e400f0051030310c584182011b503f0a42d67
parentce3c90414b46986a3f6583e3473e8303fcf4e834 (diff)
downloadphp-git-1095da42e008c025fd04283e8a637c631455926c.tar.gz
extra paranoia about the attribute param
-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