Back to index

php5  5.3.10
config.inc
Go to the documentation of this file.
00001 <?php # vim:se ft=php:
00002 if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
00003        # user set them from their shell
00004        $config['ENV']['PDOTEST_DSN'] = getenv('PDO_PGSQL_TEST_DSN');
00005        if (false !== getenv('PDO_PGSQL_TEST_ATTR')) {
00006               $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
00007        }
00008 } else {
00009        $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password=';
00010 }
00011 
00012 foreach ($config['ENV'] as $k => $v) {
00013        putenv("$k=$v");
00014 }