Skip to content

Commit

Permalink
Merge branch '3.2.x'
Browse files Browse the repository at this point in the history
* 3.2.x:
  [ticket/11076] Also state min PHP version when visiting forum website
  [ticket/11076] Also add notice about unsupported version to installer
  • Loading branch information
Nicofuma committed Jan 22, 2017
2 parents 51be789 + 3c30cbd commit a6eec87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phpBB/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@
*/

/**
* Minimum Requirement: PHP 5.3.9
* Minimum Requirement: PHP 5.4.0
*/

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);

Expand Down
5 changes: 5 additions & 0 deletions phpBB/install/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
$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);
Expand Down

0 comments on commit a6eec87

Please sign in to comment.