Skip to content

ODBC unit tests shouldn't override odbc.ini location #12133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

NattyNarwhal
Copy link
Member

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.

`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.
@NattyNarwhal NattyNarwhal changed the base branch from master to PHP-8.1 September 5, 2023 14:29
@kocsismate
Copy link
Member

Nice! I recently had to find out how to run the test suite on a Mac, and I rather set up a symlink because I didn't know why etc/odbc.ini is needed. I'm glad that we can remove it :)

@Girgias Girgias closed this in a648d39 Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants