diff options
author | Anatol Belski <ab@php.net> | 2016-02-23 14:21:04 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-02-23 14:21:04 +0100 |
commit | 9623d2dd83a0bace42e14d965d2303349c7f235a (patch) | |
tree | 709cd8253d7efcf2d449f413486f54d0fdb23d69 /ext/odbc | |
parent | d20f1d8f1f6a238cb290f5ccab2de1ac3dcaa03a (diff) | |
download | php-git-9623d2dd83a0bace42e14d965d2303349c7f235a.tar.gz |
make ext/odbc test credentials configurable
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/tests/config.inc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ext/odbc/tests/config.inc b/ext/odbc/tests/config.inc index a88eea4ed0..dcc4cbb3bf 100644 --- a/ext/odbc/tests/config.inc +++ b/ext/odbc/tests/config.inc @@ -3,6 +3,17 @@ putenv('ODBCINI=/etc/odbc.ini'); putenv('ODBCSYSINI=/etc'); -$dsn = 'myodbc3'; -$user = 'root'; -$pass = ''; +$dsn = getenv("ODBC_TEST_DSN"); +$user = getenv("ODBC_TEST_USER"); +$pass = getenv("ODBC_TEST_PASS"); + +if (false === $dsn) { + $dsn = 'myodbc3'; +} +if (false === $user) { + $user = 'root'; +} +if (false == $pass) { + $pass = ''; +} + |