From e486c9344ac0ebaf90bef8c2556b6150fab09e57 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 8 Feb 2023 19:51:00 +0100 Subject: [PATCH] bloque PHP 8.2 --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9c8aedc1..a1f15346 100644 --- a/index.php +++ b/index.php @@ -25,8 +25,12 @@ session_start(); /** * Vérification de la version de PHP */ -if(version_compare(PHP_VERSION, '7.2.0', '<')) { - exit('PHP 7.2+ required.'); +if(version_compare(PHP_VERSION, '7.2.0', '<') ) { + exit('PHP 7.2+ mini required'); +} + +if ( version_compare(PHP_VERSION, '8.1.999', '>') ) { + exit('PHP 8.2 not yet supported, install PHP 7.n or PHP 8.1.n'); } /*