minimal version PHP 8.2

This commit is contained in:
sparkyx 2025-08-05 09:55:44 +02:00
parent dc3c41cafd
commit b63612f8ac
2 changed files with 4 additions and 3 deletions

View file

@ -382,10 +382,10 @@ if (!defined('PHP_VERSION_ID')) {
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 ));
}
if ( PHP_VERSION_ID < 80000) {
echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 8.0");
if ( PHP_VERSION_ID < 82000) {
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.0"));
printf(_("Cette version nécessite au moins une version supérieure ou égale à 8.2"));
echo '</p>';
$fatal++;
} else {

View file

@ -204,6 +204,7 @@ try {
if ( DEBUGNOALYSS > 1) { echo "code attendu",$authenticator->code();}
echo '</p>';
printf('<img src="data:image/png;base64,%s">', base64_encode($result->getString()));
} catch (Exception $exc) {