Skip to content

Commit

Permalink
do not accept very old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Dec 9, 2024
1 parent 6fbb2d1 commit 1d60710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lam/lib/checkEnvironment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ include_once(__DIR__ . "/../lib/config.inc");
include_once(__DIR__ . "/../lib/persistence.inc");

// check PHP version
if (version_compare(phpversion(), '8.1') < 0) {
if (version_compare(phpversion(), '8.1.10') < 0) {
echo "<!DOCTYPE html>\n\n";
echo "<html>\n<head>\n";
echo "<meta name=\"robots\" content=\"noindex, nofollow\">\n";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n <meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
printHeaderContents('LDAP Account Manager', '..');
echo "</head><body>\n";
StatusMessage("ERROR", "LAM needs a PHP version which is greater or equal than 8.1.", "Please upgrade your PHP installation. The found version is " . phpversion());
StatusMessage("ERROR", "LAM needs a PHP version which is greater or equal than 8.1.10.", "Please upgrade your PHP installation. The found version is " . phpversion());
echo "<br><br>";
echo "</body></html>";
exit();
Expand Down

0 comments on commit 1d60710

Please sign in to comment.