Annotation of embedaddon/php/ext/pdo_pgsql/tests/config.inc, revision 1.1.1.1

1.1       misho       1: <?php # vim:se ft=php:
                      2: if (false !== getenv('PDO_PGSQL_TEST_DSN')) {
                      3:        # user set them from their shell
                      4:        $config['ENV']['PDOTEST_DSN'] = getenv('PDO_PGSQL_TEST_DSN');
                      5:        if (false !== getenv('PDO_PGSQL_TEST_ATTR')) {
                      6:                $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR');
                      7:        }
                      8: } else {
                      9:        $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password=';
                     10: }
                     11: 
                     12: foreach ($config['ENV'] as $k => $v) {
                     13:        putenv("$k=$v");
                     14: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>