Skip to content

Commit

Permalink
upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
sandesh556 committed Dec 20, 2023
1 parent fa70fca commit e05114e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/probe.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
</tr>
<?php
echo '<tr>';
if (version_compare(phpversion(), '7.1') == -1 || version_compare('7.1.50', phpversion()) == -1) {
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Recommended PHP version 7.1</p></td>';
if (version_compare(phpversion(), '8.2.0') == -1 || version_compare('8.2.0', phpversion()) == -1) {
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Recommended PHP version 8.2.0</p></td>';
} else {
echo "<td>PHP Version</td> <td style='color:green'>".phpversion().'</td>';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function __construct($message, $status = STATUS_OK) {
<?php
function validate_php(&$results) {
if (version_compare(PHP_VERSION, '8.1') != 1) {
$results[] = new TestResult('PHP version required in order to run Faveo HELPDESK is PHP 7.1.* PHP version greater or lesser than 7.1 are not supported yet. Your PHP version: ' . PHP_VERSION, STATUS_ERROR);
if (version_compare(PHP_VERSION, '8.2') != 1) {
$results[] = new TestResult('PHP version required in order to run Faveo HELPDESK is PHP 8.2.* PHP version greater or lesser than 7.1 are not supported yet. Your PHP version: ' . PHP_VERSION, STATUS_ERROR);
return false;
} else {
$results[] = new TestResult('Your PHP version is ' . PHP_VERSION, STATUS_OK);
Expand Down

0 comments on commit e05114e

Please sign in to comment.