summaryrefslogtreecommitdiff
path: root/program
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:42:57 +0200
commit5381636fc45b59fde9877a41a79da092cdb48cd5 (patch)
tree81abe4d73e86fb8a461214f473a150091ca272fe /program
parent8d956fd455fd6306fd323e541f20f4ece8437fbe (diff)
Make sure preformance info logged in devel_mode uses locale-independent number format
Diffstat (limited to 'program')
-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 07876d6b0..e558ce8e6 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -846,6 +846,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'))