]> granicus.if.org Git - php/commitdiff
more paranoia about the attribute param here too
authorWez Furlong <wez@php.net>
Thu, 7 Jul 2005 13:56:39 +0000 (13:56 +0000)
committerWez Furlong <wez@php.net>
Thu, 7 Jul 2005 13:56:39 +0000 (13:56 +0000)
ext/pdo_odbc/tests/common.phpt

index 607afb090027d4e2b546cc4d1705ee3079b6f371..f64da1a438e8619b3b5c5ec0146ecf08bf801c52 100644 (file)
@@ -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';