I got an error with Apache and php-fpm: locale settings change themselves randomly.
Here are the correct locale settings:
Array
(
[decimal_point] => .
[thousands_sep] =>
[int_curr_symbol] =>
[currency_symbol] =>
[mon_decimal_point] =>
[mon_thousands_sep] =>
[positive_sign] =>
[negative_sign] =>
[int_frac_digits] => 127
[frac_digits] => 127
[p_cs_precedes] => 127
[p_sep_by_space] => 127
[n_cs_precedes] => 127
[n_sep_by_space] => 127
[p_sign_posn] => 127
[n_sign_posn] => 127
[grouping] => Array
(
)
[mon_grouping] => Array
(
)
)
And here are the changed settings:
Array
(
[decimal_point] => ,
[thousands_sep] =>
[int_curr_symbol] => EUR
[currency_symbol] => €
[mon_decimal_point] => ,
[mon_thousands_sep] =>
[positive_sign] =>
[negative_sign] => -
[int_frac_digits] => 2
[frac_digits] => 2
[p_cs_precedes] => 0
[p_sep_by_space] => 1
[n_cs_precedes] => 0
[n_sep_by_space] => 1
[p_sign_posn] => 1
[n_sign_posn] => 1
[grouping] => Array
(
[0] => 3
)
[mon_grouping] => Array
(
[0] => 3
)
)
The problem arises randomly, and I think that it is connected with processes, for example, on PHP doc :
Locale information is maintained for each process, not for a thread. If you use PHP on an API with a multi-threaded server, such as IIS, HHVM or Apache on Windows, you may encounter sudden changes in locale settings while the script is running, although the script itself never called setlocale (). This is due to other scripts running in different threads of the same process at the same time, changing the language of the entire system using setlocale ().
php-fpm FastCGI . php-fpm? ( , ), php-fpm, .
!