3 function init_phabricator_script(array $options) {
4 error_reporting(E_ALL | E_STRICT
);
5 ini_set('display_errors', 1);
7 $include_path = ini_get('include_path');
10 $include_path.PATH_SEPARATOR
.dirname(__FILE__
).'/../../../');
12 $ok = @include_once
'arcanist/support/init/init-script.php';
15 'FATAL ERROR: Unable to load the "Arcanist" library. '.
16 'Put "arcanist/" next to "phabricator/" on disk.';
22 phutil_load_library('arcanist/src');
23 phutil_load_library(dirname(__FILE__
).'/../../src/');
25 $config_optional = $options['config.optional'];
26 PhabricatorEnv
::initializeScriptEnvironment($config_optional);