[ticket/11076] Also state min PHP version when visiting forum website

A lot better to have a simple message than having the complete board break,
sometimes without even knowing thanks to bad host setups with no error logs.

PHPBB3-11076
This commit is contained in:
Marc Alexander 2017-01-20 21:20:59 +01:00
parent d0724063c4
commit b1f060a30a
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -12,7 +12,7 @@
*/
/**
* Minimum Requirement: PHP 5.3.9
* Minimum Requirement: PHP 5.4.0
*/
if (!defined('IN_PHPBB'))
@ -20,6 +20,11 @@ if (!defined('IN_PHPBB'))
exit;
}
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');
}
require($phpbb_root_path . 'includes/startup.' . $phpEx);
require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx);