Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf7c751

Browse filesBrowse files
Denys Voroninhurricane-voronin
Denys Voronin
authored andcommitted
[Config] Disable default alphabet sorting in glob function due of unstable sort
1 parent 29cabf9 commit cf7c751
Copy full SHA for cf7c751

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Config/Resource/GlobResource.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Resource/GlobResource.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getIterator()
100100
}
101101

102102
if (0 !== strpos($this->prefix, 'phar://') && false === strpos($this->pattern, '/**/') && (\defined('GLOB_BRACE') || false === strpos($this->pattern, '{'))) {
103-
foreach (glob($this->prefix.$this->pattern, \defined('GLOB_BRACE') ? GLOB_BRACE : 0) as $path) {
103+
foreach (glob($this->prefix.$this->pattern, (\defined('GLOB_BRACE') ? GLOB_BRACE : 0) | (\defined('GLOB_NOSORT') ? GLOB_NOSORT : 0) as $path) {
104104
if ($this->recursive && is_dir($path)) {
105105
$files = iterator_to_array(new \RecursiveIteratorIterator(
106106
new \RecursiveCallbackFilterIterator(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.