Changeset View
Changeset View
Standalone View
Standalone View
support/startup/PhabricatorStartup.php
Show First 20 Lines • Show All 389 Lines • ▼ Show 20 Lines | private static function setupPHP() { | ||||
error_reporting(E_ALL | E_STRICT); | error_reporting(E_ALL | E_STRICT); | ||||
self::$oldMemoryLimit = ini_get('memory_limit'); | self::$oldMemoryLimit = ini_get('memory_limit'); | ||||
ini_set('memory_limit', -1); | ini_set('memory_limit', -1); | ||||
// If we have libxml, disable the incredibly dangerous entity loader. | // If we have libxml, disable the incredibly dangerous entity loader. | ||||
if (function_exists('libxml_disable_entity_loader')) { | if (function_exists('libxml_disable_entity_loader')) { | ||||
libxml_disable_entity_loader(true); | libxml_disable_entity_loader(true); | ||||
} | } | ||||
// See T13060. If the locale for this process (the parent process) is not | |||||
// a UTF-8 locale we can encounter problems when launching subprocesses | |||||
// which receive UTF-8 parameters in their command line argument list. | |||||
@setlocale(LC_ALL, 'en_US.UTF-8'); | |||||
} | } | ||||
/** | /** | ||||
* @task validation | * @task validation | ||||
*/ | */ | ||||
public static function getOldMemoryLimit() { | public static function getOldMemoryLimit() { | ||||
return self::$oldMemoryLimit; | return self::$oldMemoryLimit; | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |