1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Merge pull request #4301 from 3D-I/PHPBB3-14596

[ticket/14596] Deny installation of Ascraeus under PHP 7
This commit is contained in:
Marc Alexander
2016-07-31 15:18:35 +02:00
2 changed files with 4 additions and 4 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>';
}