Ensure installed.php data is sorted deterministically, fixes #12197
parent
dc2844cc72
commit
cc820306eb
|
@ -329,6 +329,14 @@ REGEX;
|
||||||
ksort($versions['versions']);
|
ksort($versions['versions']);
|
||||||
ksort($versions);
|
ksort($versions);
|
||||||
|
|
||||||
|
foreach ($versions['versions'] as $name => $version) {
|
||||||
|
foreach (['aliases', 'replaced', 'provided'] as $key) {
|
||||||
|
if (isset($versions['versions'][$name][$key])) {
|
||||||
|
sort($versions['versions'][$name][$key], SORT_NATURAL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $versions;
|
return $versions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,10 @@
|
||||||
'foo/impl' => array(
|
'foo/impl' => array(
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
'provided' => array(
|
'provided' => array(
|
||||||
0 => '^1.1',
|
0 => '1.2',
|
||||||
1 => '1.2',
|
1 => '1.4',
|
||||||
2 => '1.4',
|
2 => '2.0',
|
||||||
3 => '2.0',
|
3 => '^1.1',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'foo/impl2' => array(
|
'foo/impl2' => array(
|
||||||
|
|
Loading…
Reference in New Issue