1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-19 16:58:48 +02: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:
vrana 2012-03-26 10:32:01 -07:00
parent 0f94b49b33
commit 5ba6e241c4

View file

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