[php-src] PR #12133: ODBC unit tests shouldn't override odbc.ini location
| From: | NattyNarwhal | Date: | Tue, 05 Sep 2023 14:42:15 +0000 |
| Subject: | [php-src] PR #12133: ODBC unit tests shouldn't override odbc.ini location | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23576@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12133
Author: NattyNarwhal
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.
Fixes running the test suite on macOS with MacPorts, which puts it in /opt/local/etc.
I'm applying this to 8.1 since it is a bug fix, but I can retarget if needed.