Changeset View
Changeset View
Standalone View
Standalone View
support/startup/PhabricatorStartup.php
| Show First 20 Lines • Show All 517 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 (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 PHP 'magic_quotes_gpc' enabled. This ". | ||||
| "feature is 'highly discouraged' by PHP's developers and you must ". | "feature is 'highly discouraged' by PHP's developers and you must ". | ||||
| "disable it to run Phabricator. Consult the PHP manual for ". | "disable it to run Phabricator. Consult the PHP manual for ". | ||||
| "instructions."); | "instructions."); | ||||
| } | } | ||||
| if (extension_loaded('apc')) { | if (extension_loaded('apc')) { | ||||
| ▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines | |||||