bloque PHP 8.2

This commit is contained in:
Fred Tempez 2023-02-08 19:51:00 +01:00
parent 65f5dd7c60
commit e486c9344a

View File

@ -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');
}
/*