From 03956bca9734a571dd3537cc373a207c93c1cf72 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Fri, 23 Jun 2006 20:48:30 +0000 Subject: [PATCH] Try to at least give very old PHP versions a reason why they can't do anything We might review this again later to try and find the reason they were getting a blank page, but given the age of 4.2.x, there hopefully won't be too many people still running it git-svn-id: file:///svn/phpbb/trunk@6120 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 7d6d1beb2b..15e6f6aa6f 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -19,6 +19,12 @@ $phpEx = substr(strrchr(__FILE__, '.'), 1); // Report all errors, except notices error_reporting(E_ALL ^ E_NOTICE); +// @todo Review this test and see if we can find out what it is which prevents PHP 4.2.x from even displaying the page with requirements on it +if (version_compare(phpversion(), '4.3.0') < 0) +{ + die('You are running an unsupported PHP version. Please upgrade to PHP 4.3.3 or higher before trying to install phpBB 3.0'); +} + /* * Remove variables created by register_globals from the global scope * Thanks to Matt Kavanagh