summaryrefslogtreecommitdiff
path: root/ext/odbc/tests/config.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/odbc/tests/config.inc')
-rw-r--r--ext/odbc/tests/config.inc17
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 = '';
+}
+