Skip to content

Commit

Permalink
improv. php7.4 support (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo authored and Eywek committed Nov 25, 2019
1 parent f1518eb commit 2f95714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/View/Install/first.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</tr>
<?php endif; ?>
<tr>
<td>Version de PHP >= 5.6 <= 7.3</td>
<td>Version de PHP >= 5.6 <= 7.4</td>
<td><?= affichImg($compatible['phpVersion']) ?></td>
</tr>
<?php if(!$compatible['phpVersion'] && isset($help['phpVersion'])): ?>
Expand Down
2 changes: 1 addition & 1 deletion app/webroot/verif-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function ($m) {
$help['curl'] = "<a target='_blank' href='https://www.google.fr/search?query=Install+curl+on+$os'>Aide à propos de l'installation de curl sur ma machine</a>";
}

$compatible['phpVersion'] = version_compare(PHP_VERSION, '5.6', '>=') && version_compare(PHP_VERSION, '7.4', '<');
$compatible['phpVersion'] = version_compare(PHP_VERSION, '5.6', '>=') && version_compare(PHP_VERSION, '7.5', '<');

if (!$compatible['phpVersion']) {
$help['phpVersion'] = "<a target='_blank' href='https://www.google.fr/search?query=Install+PHP+7.1+on+$os'>Aide à propos de l'installation de php 7.1 sur ma machine</a>";
Expand Down

0 comments on commit 2f95714

Please sign in to comment.