1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/14596] Deny installation of Ascraeus under PHP 7

PHPBB3-14596
This commit is contained in:
3Di
2016-04-23 07:10:59 +02:00
parent 4cdec74e94
commit 269e253524
2 changed files with 5 additions and 5 deletions

View File

@@ -151,10 +151,10 @@ class install_install extends module
'LEGEND_EXPLAIN' => $lang['PHP_SETTINGS_EXPLAIN'],
));
// Test the minimum PHP version
// Test the minimum and maximum version of PHP
$php_version = PHP_VERSION;
if (version_compare($php_version, '5.3.3') < 0)
if ((version_compare($php_version, '5.3.3') < 0) || (version_compare($php_version, '7.0.0-dev', '>=')))
{
$result = '<strong style="color:red">' . $lang['NO'] . '</strong>';
}