From: Jerome Jutteau Date: Sun, 3 Jan 2021 20:55:11 +0000 (+0100) Subject: [TASK] add more information in bug report X-Git-Tag: 4.4.0~9 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/33bb6cfe3111b316082336edae43846aaef84f17?ds=sidebyside;hp=4dc05368251f5bb89a2780f5b1a4bd1866369bdd [TASK] add more information in bug report Signed-off-by: Jerome Jutteau --- 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; }