cvs: php-src /ext/pdo_pgsql/tests config.inc

From: Date: Wed, 18 Jul 2007 12:28:08 +0000
Subject: cvs: php-src /ext/pdo_pgsql/tests config.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-45436@lists.php.net to get a copy of this message
nlopess Wed Jul 18 12:28:08 2007 UTC Modified files: /php-src/ext/pdo_pgsql/tests config.inc Log: attempt to fix pdo_pgsql tests in HEAD http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/tests/config.inc?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/pdo_pgsql/tests/config.inc diff -u /dev/null php-src/ext/pdo_pgsql/tests/config.inc:1.2 --- /dev/null Wed Jul 18 12:28:08 2007 +++ php-src/ext/pdo_pgsql/tests/config.inc Wed Jul 18 12:28:08 2007 @@ -0,0 +1,14 @@ +<?php # vim:se ft=php: +if (false !== getenv('PDO_PGSQL_TEST_DSN')) { + # user set them from their shell + $config['ENV']['PDOTEST_DSN'] = getenv('PDO_PGSQL_TEST_DSN'); + if (false !== getenv('PDO_PGSQL_TEST_ATTR')) { + $config['ENV']['PDOTEST_ATTR'] = getenv('PDO_PGSQL_TEST_ATTR'); + } +} else { + $config['ENV']['PDOTEST_DSN'] = 'pgsql:host=localhost port=5432 dbname=test user=root password='; +} + +foreach ($config['ENV'] as $k => $v) { + putenv("$k=$v"); +}

« previous php.cvs (#45436) next »