-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
BC break in 3.6.3 with sorting paths #45
Comments
I have use |
Should we just revert? |
Not sure. For me call https://github.com/laminas/laminas-stdlib/blob/3.7.x/src/Glob.php#L55 |
I can confirm this bug. Updating from laminas-stdlib 3.6.2 to 3.6.3 breaks my application. I am having a configuration file named Thanks, snapshotpl, for figuring out the cause! By the way, I am using pretty much the default Laminas MVC skeleton with the following configuration in
... and the following in
This is how the merged configuration looks like: So far everything fine, I think, but |
Looks like this will break most laminas app, so need to revert ASAP. @Ocramius ? @weierophinney ? |
Send a revert patch 👍 |
It seems to be negation sign is forgotten here https://github.com/laminas/laminas-stdlib/blob/3.7.x/src/Glob.php#L112 |
I can confirm that adding the missing negation sign fixes the broken loading of configuration files in my MVC application. |
@driehle should I wait for your work on the patch, or revert? |
@Ocramius I think a revert is not needed. Simply fixing the negation sign should be fine. What I am currently trying to to is setting up a CI job that runs with Alpine Linux, so that we have a failing test case. I think that the current issue only appears on Alpine Linux, which doesn't provide GLOB_BRACE. At least my app runs on Alpine Linux. Maybe @snapshotpl and @naur1970 can confirm that for him the issue appears on Alpine Linux as well? Anyways, currently CI runs on Ubuntu (latest) only, which provides GLOB_BRACE. Hence, the fallback is never actually covered in CI which is likely why this error has not been discovered prior to merging. |
Confirm! In my case the ploblem has manifested on Alpine Linux. |
Signed-off-by: Dennis Riehle <[email protected]>
Signed-off-by: Dennis Riehle <[email protected]>
Signed-off-by: Dennis Riehle <[email protected]>
Yes, it appears on Alpine. Thanks for patch! |
FIxed in #46 |
Ah, that's interesting! Previously, the only OS that didn't provide GLOB_BRACE was IBM i - and we had workarounds for that (it's why we even had the functionality in here!). Will look at the patch later today - thanks for doing the legwork! |
Thanks to @naur1970, who found the actual cause! |
Thanks for getting it released so quickly, y'all: stellar work! 💪 |
Good job guys! I was struggling with this for a while today. Thanks for fixing so quickly! 👍 |
BC Break Report
Summary
#43 with fix for #15 introduces BC break. #17 explained it already.
Previous behavior
File paths didn't sort.
Current behavior
File paths are sort now.
The text was updated successfully, but these errors were encountered: