diff options
author | Tristan Darricau <github@nicofuma.fr> | 2017-01-22 23:35:37 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2017-01-22 23:35:37 +0100 |
commit | 3c30cbd39ecf287d95f49ae3098d0b05a7fcfb13 (patch) | |
tree | 4980a0acb0b90be2760a6807849565227721d6ad /phpBB/install | |
parent | 9df6ef5735a32fe9c46be3891c6a4ed2308a1d27 (diff) | |
parent | b1f060a30ae89529c887db648f767578f5a8051a (diff) | |
download | forums-3c30cbd39ecf287d95f49ae3098d0b05a7fcfb13.tar forums-3c30cbd39ecf287d95f49ae3098d0b05a7fcfb13.tar.gz forums-3c30cbd39ecf287d95f49ae3098d0b05a7fcfb13.tar.bz2 forums-3c30cbd39ecf287d95f49ae3098d0b05a7fcfb13.tar.xz forums-3c30cbd39ecf287d95f49ae3098d0b05a7fcfb13.zip |
Merge pull request #4650 from marc1706/ticket/11076-rhea
[ticket/11076] State current and minimum required versions in old PHP notice
* marc1706/ticket/11076-rhea:
[ticket/11076] Also state min PHP version when visiting forum website
[ticket/11076] Also add notice about unsupported version to installer
Diffstat (limited to 'phpBB/install')
-rw-r--r-- | phpBB/install/app.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/install/app.php b/phpBB/install/app.php index 9664f92cf1..ef59689a65 100644 --- a/phpBB/install/app.php +++ b/phpBB/install/app.php @@ -20,6 +20,11 @@ define('PHPBB_ENVIRONMENT', 'production'); $phpbb_root_path = '../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); +if (version_compare(PHP_VERSION, '5.4') < 0) +{ + die('You are running an unsupported PHP version. Please upgrade to PHP 5.4.0 or higher before trying to install or update to phpBB 3.2'); +} + $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx; $startup_path = (file_exists($startup_new_path)) ? $startup_new_path : $phpbb_root_path . 'install/startup.' . $phpEx; require($startup_path); |