Changeset View
Changeset View
Standalone View
Standalone View
support/init/init-script.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | function __arcanist_init_script__() { | ||||
// Adjust `include_path`. | // Adjust `include_path`. | ||||
ini_set('include_path', implode(PATH_SEPARATOR, array( | ini_set('include_path', implode(PATH_SEPARATOR, array( | ||||
dirname(dirname(__FILE__)).'/externals/includes', | dirname(dirname(__FILE__)).'/externals/includes', | ||||
ini_get('include_path'), | ini_get('include_path'), | ||||
))); | ))); | ||||
// Disable the insanely dangerous XML entity loader by default. | // Disable the insanely dangerous XML entity loader by default. | ||||
// PHP 8 deprecates this function and disables this by default; remove once | |||||
// PHP 7 is no longer supported or a future version has removed the function | |||||
// entirely. | |||||
if (function_exists('libxml_disable_entity_loader')) { | if (function_exists('libxml_disable_entity_loader')) { | ||||
libxml_disable_entity_loader(true); | @libxml_disable_entity_loader(true); | ||||
} | } | ||||
$root = dirname(dirname(dirname(__FILE__))); | $root = dirname(dirname(dirname(__FILE__))); | ||||
require_once $root.'/src/init/init-library.php'; | require_once $root.'/src/init/init-library.php'; | ||||
PhutilErrorHandler::initialize(); | PhutilErrorHandler::initialize(); | ||||
PhutilErrorHandler::initialize(); | PhutilErrorHandler::initialize(); | ||||
Show All 15 Lines |