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. | ||||
if (function_exists('libxml_disable_entity_loader')) { | // PHP 8 deprecates this function and disables this by default. | ||||
if (function_exists('libxml_disable_entity_loader') && \PHP_VERSION_ID < 80000) { | |||||
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(); | ||||
Show All 16 Lines |