From 43dce0211f6fef361edc270a50dcd5948075dc65 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 8 May 2024 13:23:59 +0200 Subject: [PATCH 1/4] Show PHP < 8 as deprecated --- application/views/debug/index.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 75aeae2b5..38e8088f0 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -66,7 +66,15 @@ PHP Version - + + ".phpversion().""; + } else { + echo "".phpversion().""; + } + ?> + @@ -587,4 +595,4 @@ var local_branch = 'n/a'; - \ No newline at end of file + From 331c3defe0d764dbedc0b0d92407d73acc0fdfcf Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 8 May 2024 13:36:36 +0200 Subject: [PATCH 2/4] Add tooltip --- application/views/debug/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 38e8088f0..204377f22 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -69,7 +69,7 @@ ".phpversion().""; + echo "".phpversion().""; } else { echo "".phpversion().""; } From 84e2e7065e891fdaa2c1c913955386fcfa14a095 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 8 May 2024 14:06:36 +0200 Subject: [PATCH 3/4] Put badge after text --- application/views/debug/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 204377f22..09c5ef4ff 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -68,10 +68,10 @@ PHP Version ".phpversion().""; + if (version_compare(phpversion(), '8', '>')) { + echo phpversion()." OK"; } else { - echo "".phpversion().""; + echo phpversion()." Deprecated"; } ?> From 7e7064a49265fc91c127e07eb3d4680da7948f55 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 8 May 2024 14:21:10 +0200 Subject: [PATCH 4/4] Align version comparison --- application/views/debug/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 09c5ef4ff..086ac8ae5 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -68,7 +68,7 @@ PHP Version ')) { + if (version_compare(PHP_VERSION, '8.0.0') >= 0) { echo phpversion()." OK"; } else { echo phpversion()." Deprecated";