summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-10 08:40:12 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-10 08:40:12 +0200
commit70c0d256841aa736a3f4a74a345ec4b0dfcdad78 (patch)
tree5142979705c7aae3175662c1587db381f08d9e7f
parent5e3ee8418e67643a145e01bb2248a70a191f2d02 (diff)
Make sure preformance info logged in devel_mode uses locale-independent number format
-rw-r--r--program/include/rcmail.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 2ccad03c6..a8124523a 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -839,6 +839,9 @@ class rcmail extends rcube
// write performance stats to logs/console
if ($this->config->get('devel_mode')) {
+ // make sure logged numbers use unified format
+ setlocale(LC_NUMERIC, 'en_US.utf8', 'en_US.UTF-8', 'en_US', 'C');
+
if (function_exists('memory_get_usage'))
$mem = $this->show_bytes(memory_get_usage());
if (function_exists('memory_get_peak_usage'))