diff options
| author | Wez Furlong <wez@php.net> | 2005-07-07 13:56:09 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-07-07 13:56:09 +0000 |
| commit | 1095da42e008c025fd04283e8a637c631455926c (patch) | |
| tree | a34e400f0051030310c584182011b503f0a42d67 | |
| parent | ce3c90414b46986a3f6583e3473e8303fcf4e834 (diff) | |
| download | php-git-1095da42e008c025fd04283e8a637c631455926c.tar.gz | |
extra paranoia about the attribute param
| -rw-r--r-- | ext/pdo/tests/pdo_test.inc | 4 |
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 |
