Skip to content

Commit

Permalink
ODBC unit tests shouldn't override odbc.ini location
Browse files Browse the repository at this point in the history
`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>
  • Loading branch information
NattyNarwhal authored and Girgias committed Sep 6, 2023
1 parent 5a2b251 commit a648d39
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ext/odbc/tests/config.inc
@@ -1,8 +1,5 @@
<?php

putenv('ODBCINI=/etc/odbc.ini');
putenv('ODBCSYSINI=/etc');

$dsn = getenv("ODBC_TEST_DSN");
$user = getenv("ODBC_TEST_USER");
$pass = getenv("ODBC_TEST_PASS");
Expand Down

0 comments on commit a648d39

Please sign in to comment.