From: Wez Furlong Date: Thu, 7 Jul 2005 13:56:39 +0000 (+0000) Subject: more paranoia about the attribute param here too X-Git-Tag: php-5.1.0b3~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fff515bc46ba64446c644bb70addea2e3faf594a;p=php more paranoia about the attribute param here too --- 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';