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

undefined constant GLOB_BRACE on Alpine Linux #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deleugpn
Copy link
Contributor

While following the guide on http://doc.php.net/tutorial/local-setup.php when I got to the step of running php doc-base/configure.php I got a warning

Iterating over extension specific version files... PHP Warning:  Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' (this will throw an Error in a future version of PHP) in /app/doc-base/configure.php on line 649

While looking into it, Alpine Linux doesn't seem to support GLOB_BRACE.
I decided to run a container with Amazon Linux 2 (bref.sh images) and the warning does not show up there. I did the following comparison

Distribution Command
Amazon Linux 2 var_dump(glob($globdir));
Amazon Linux 2 var_dump(glob($globdir), GLOB_BRACE);
Alpine Linux var_dump(glob($globdir));

All 3 generated the exact same output. I'm not sure if I'm missing something, but simply dropping GLOB_BRACE seems to solve the support compatibility with Alpine without sacrificing anything?

@emover121
Copy link

updat docoments

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.

None yet

2 participants