Changeset View
Changeset View
Standalone View
Standalone View
support/startup/PhabricatorStartup.php
Show First 20 Lines • Show All 515 Lines • ▼ Show 20 Lines | private static function verifyPHP() { | ||||
$required_version = '5.2.3'; | $required_version = '5.2.3'; | ||||
if (version_compare(PHP_VERSION, $required_version) < 0) { | if (version_compare(PHP_VERSION, $required_version) < 0) { | ||||
self::didFatal( | self::didFatal( | ||||
"You are running PHP version '".PHP_VERSION."', which is older than ". | "You are running PHP version '".PHP_VERSION."', which is older than ". | ||||
"the minimum version, '{$required_version}'. Update to at least ". | "the minimum version, '{$required_version}'. Update to at least ". | ||||
"'{$required_version}'."); | "'{$required_version}'."); | ||||
} | } | ||||
if (function_exists('get_magic_quotes_gpc')) { | |||||
if (@get_magic_quotes_gpc()) { | if (@get_magic_quotes_gpc()) { | ||||
self::didFatal( | self::didFatal( | ||||
"Your server is configured with PHP 'magic_quotes_gpc' enabled. This ". | 'Your server is configured with the PHP language feature '. | ||||
"feature is 'highly discouraged' by PHP's developers and you must ". | '"magic_quotes_gpc" enabled.'. | ||||
"disable it to run Phabricator. Consult the PHP manual for ". | "\n\n". | ||||
"instructions."); | 'This feature is "highly discouraged" by PHP\'s developers, and '. | ||||
'has been removed entirely in PHP8.'. | |||||
"\n\n". | |||||
'You must disable "magic_quotes_gpc" to run Phabricator. Consult '. | |||||
'the PHP manual for instructions.'); | |||||
} | |||||
} | } | ||||
if (extension_loaded('apc')) { | if (extension_loaded('apc')) { | ||||
$apc_version = phpversion('apc'); | $apc_version = phpversion('apc'); | ||||
$known_bad = array( | $known_bad = array( | ||||
'3.1.14' => true, | '3.1.14' => true, | ||||
'3.1.15' => true, | '3.1.15' => true, | ||||
'3.1.15-dev' => true, | '3.1.15-dev' => true, | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |