Skip to content
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

Do not rely on GLOB_BRACE as it is not available on non-glibc based systems #2735

Merged
merged 2 commits into from
Sep 29, 2017
Merged

Do not rely on GLOB_BRACE as it is not available on non-glibc based systems #2735

merged 2 commits into from
Sep 29, 2017

Conversation

koendc
Copy link

@koendc koendc commented Sep 21, 2017

This fixes Cachet 2.4 on eg the alpine-based Docker deployment.
Fixes #2586.

@jbrooksuk
Copy link
Member

I don't get why the current solution doesn't work as we only use it if it's defined, which, if you're on a non-glibc system, it'll fall back to 0.

@koendc
Copy link
Author

koendc commented Sep 21, 2017

The glob expression contains braces which are not expanded by the glob filter if the GLOB_BRACE flag is not set. As a result the curly braces remain in the search expression and no php files are returned.

@jbrooksuk
Copy link
Member

@koendc I see... The problem with your fix is that we're still limited to one sub-directory though. Although this is fine for now, long-term we may want to introduce more routes.

@koendc
Copy link
Author

koendc commented Sep 22, 2017

@jbrooksuk I made the search recursive in the last commit.

@jbrooksuk jbrooksuk merged commit 818adcc into cachethq:2.4 Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.4 installation fails on Alpine Linux
3 participants