mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 00:40:57 +01:00
Check required PHP version
Summary: D1999#4 Test Plan: / with HPHP. / with required version bumped to 5.14.0. Reviewers: epriestley Reviewed By: epriestley CC: nh, aran, epriestley Differential Revision: https://secure.phabricator.com/D2020
This commit is contained in:
parent
0f94b49b33
commit
5ba6e241c4
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,14 @@ $__start__ = microtime(true);
|
|||
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
|
||||
$required_version = '5.2.0';
|
||||
if (version_compare(PHP_VERSION, $required_version) < 0) {
|
||||
phabricator_fatal_config_error(
|
||||
"You are running PHP version '".PHP_VERSION."', which is older than ".
|
||||
"the minimum version, '{$required_version}'. Update to at least ".
|
||||
"'{$required_version}'.");
|
||||
}
|
||||
|
||||
phabricator_detect_insane_memory_limit();
|
||||
|
||||
ini_set('memory_limit', -1);
|
||||
|
|
Loading…
Reference in a new issue