mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00

`ext/odbc/tests/config.inc` overrides the INIs used for the ODBC driver manager pointlessly. It's not pointing to some custom PHP test suite specific one, but the system one in `/etc/odbc(inst).ini`. Which doesn't necessarily exist, on i.e. NixOS, MacPorts, etc. Closes GH-12133 Signed-off-by: George Peter Banyard <girgias@php.net>
15 lines
240 B
PHP
15 lines
240 B
PHP
<?php
|
|
|
|
$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 = '';
|
|
}
|