X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/4dc05368251f5bb89a2780f5b1a4bd1866369bdd..refs/merge-requests/87/head:/lib/functions.php
diff --git a/lib/functions.php b/lib/functions.php
index 53733ca..a4f9ec6 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -843,12 +843,16 @@ function jirafeau_admin_bug_report($cfg)
$out .= "- mcrypt version: " . phpversion('mcrypt') . "
";
$php_options = [
'post_max_size',
- 'upload_max_filesize'
+ 'upload_max_filesize',
+ 'safe_mode',
+ 'max_execution_time',
+ 'max_input_time'
];
foreach ($php_options as &$o) {
$v = ini_get($o);
$out .= "- $o: " . jirafeau_strval($v) . " (" . gettype($v). ")
";
}
+ $out .= "- can set_time_limit: " . (set_time_limit(0) ? "yes" : "no") . "
";
$out .= "
";
$out .= "# File permissions
";
@@ -869,10 +873,15 @@ function jirafeau_admin_bug_report($cfg)
$out .= "# Browser details
";
$out .= "";
+ $out .= "
";
+
+ $out .= "# Memory
";
+ $out .= "- memory_get_peak_usage: " . jirafeau_human_size(memory_get_peak_usage()) . "
";
+
$out .= "";
return $out;
}