From 33bb6cfe3111b316082336edae43846aaef84f17 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Sun, 3 Jan 2021 21:55:11 +0100 Subject: [PATCH] [TASK] add more information in bug report Signed-off-by: Jerome Jutteau --- lib/functions.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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; } -- 2.34.1