aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/app.php5
-rw-r--r--phpBB/install/phpinfo.php14
2 files changed, 19 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);
diff --git a/phpBB/install/phpinfo.php b/phpBB/install/phpinfo.php
new file mode 100644
index 0000000000..28c3b9ff04
--- /dev/null
+++ b/phpBB/install/phpinfo.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ *
+ * This file is part of the phpBB Forum Software package.
+ *
+ * @copyright (c) phpBB Limited <https://www.phpbb.com>
+ * @license GNU General Public License, version 2 (GPL-2.0)
+ *
+ * For full copyright and license information, please see
+ * the docs/CREDITS.txt file.
+ *
+ */
+
+phpinfo();