Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Conversation

@kynx
Copy link
Contributor

@kynx kynx commented Oct 7, 2017

The recently released Mac highSierra OS has changed the order globbed files are returned when using GLOB_BRACE. Previously (and on any *nix box I've tried) you'd get something like:

config.global.php
foo.global.php
config.local.php

On highSierra you get:

config.global.php
config.local.php
foo.global.php

According to the libc man page glob sorts the file names alphabetically. But clearly this doesn't happen in most implementations when using brace patterns.

This PR adds a GLOB_NOSORT flag to ensure files are returned in brace order under highSierra. Note files within each brace match will now be returned in filesystem order: if someone were relying on entries in b.global.php overriding a.global.php this may not happen.

@weierophinney
Copy link
Member

Closed in favor of #14.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants