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

Fixed merge order of config files on FreeBSD-based systems #14

Merged
merged 1 commit into from Nov 6, 2017
Merged

Fixed merge order of config files on FreeBSD-based systems #14

merged 1 commit into from Nov 6, 2017

Conversation

kynx
Copy link
Contributor

@kynx kynx commented Oct 8, 2017

This is an alternative to #13. As noted on that PR, on FreeBSD-based systems - including macOS highSierra - the libc glob function now sorts all the results before returning them, instead of returning the results in brace pattern order (as glibc does).

This PR doesn't suffer from the potential BC-break if people are relying on the order of config results within a brace expression (ie counting on a.global.php being merged before b.global.php).

To do this it passes the $forceFallback param to Zend\Stdlib\Glob::glob() so the brace order is controlled in userland. To ensure this always happens it adds zendframework/zend-stdlib as a dependency.

@moderndeveloperllc
Copy link

@weierophinney Is this going to get merged soon? Took me all day to figure out why my app decided to stop working. Managed to trace it down to this issue.

@weierophinney weierophinney merged commit e7886ca into zendframework:master Nov 6, 2017
weierophinney added a commit that referenced this pull request Nov 6, 2017
Fixed merge order of config files on FreeBSD-based systems

Conflicts:
	composer.lock
weierophinney added a commit that referenced this pull request Nov 6, 2017
weierophinney added a commit that referenced this pull request Nov 6, 2017
weierophinney added a commit that referenced this pull request Nov 6, 2017
@weierophinney
Copy link
Member

Thanks, @kynx. Merged to master; will release shortly.

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.

None yet

3 participants