diff options
| author | Wez Furlong <wez@php.net> | 2005-07-07 13:56:39 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-07-07 13:56:39 +0000 |
| commit | fff515bc46ba64446c644bb70addea2e3faf594a (patch) | |
| tree | 9dc64c651733ff5493afed6d5a7e1c1ebbc02cc3 | |
| parent | 1095da42e008c025fd04283e8a637c631455926c (diff) | |
| download | php-git-fff515bc46ba64446c644bb70addea2e3faf594a.tar.gz | |
more paranoia about the attribute param here too
| -rw-r--r-- | ext/pdo_odbc/tests/common.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pdo_odbc/tests/common.phpt b/ext/pdo_odbc/tests/common.phpt index 607afb0900..f64da1a438 100644 --- a/ext/pdo_odbc/tests/common.phpt +++ b/ext/pdo_odbc/tests/common.phpt @@ -16,7 +16,9 @@ if (false !== getenv('PDO_ODBC_TEST_DSN')) { $config['ENV']['PDOTEST_DSN'] = getenv('PDO_ODBC_TEST_DSN'); $config['ENV']['PDOTEST_USER'] = getenv('PDO_ODBC_TEST_USER'); $config['ENV']['PDOTEST_PASS'] = getenv('PDO_ODBC_TEST_PASS'); - $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_ODBC_TEST_ATTR'); + if (false !== getenv('PDO_ODBC_TEST_ATTR')) { + $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_ODBC_TEST_ATTR'); + } } elseif (preg_match('/^WIN/i', PHP_OS)) { # on windows, try to create a temporary MS access database $path = realpath(dirname(__FILE__)) . '\pdo_odbc.mdb'; |
