INSTALL: check phpversion
This commit is contained in:
parent
b24c5b27c7
commit
59ab697bb7
1 changed files with 1 additions and 6 deletions
|
|
@ -376,15 +376,10 @@ $fatal=0;
|
|||
//------------------------------------------------------------------------------
|
||||
// PHP Version
|
||||
//------------------------------------------------------------------------------
|
||||
if (!defined('PHP_VERSION_ID')) {
|
||||
$version = explode('.',PHP_VERSION);
|
||||
|
||||
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 ));
|
||||
}
|
||||
/**
|
||||
* Minimum version = 8.2 == 80200
|
||||
*/
|
||||
if ( PHP_VERSION_ID < 80200) {
|
||||
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 80200) {
|
||||
echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 8.2");
|
||||
echo '<p style="color:grey;margin-left:20px">';
|
||||
printf(_("Cette version nécessite au moins une version supérieure ou égale à 8.2"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue