mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaConfigHelper: use string-based sort for...
...dictionary fields to make PHP 5.x and PHP 7.x produce the same output. refs #12591
This commit is contained in:
parent
e58a70613c
commit
4cd399e059
@ -149,7 +149,7 @@ class IcingaConfigHelper
|
|||||||
if (empty($vals)) {
|
if (empty($vals)) {
|
||||||
return '{}';
|
return '{}';
|
||||||
}
|
}
|
||||||
ksort($vals);
|
ksort($vals, SORT_STRING);
|
||||||
|
|
||||||
// Prefix for toConfigString?
|
// Prefix for toConfigString?
|
||||||
return "{\n" . implode("\n", $vals) . "\n}";
|
return "{\n" . implode("\n", $vals) . "\n}";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
"0" = numeric
|
||||||
@include = reserved
|
@include = reserved
|
||||||
key1 = bla
|
key1 = bla
|
||||||
"spe cial" = value
|
"spe cial" = value
|
||||||
"0" = numeric
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user