Changeset View
Changeset View
Standalone View
Standalone View
scripts/__init_script__.php
| <?php | <?php | ||||
| function init_phabricator_script() { | function init_phabricator_script() { | ||||
| error_reporting(E_ALL | E_STRICT); | error_reporting(E_ALL | E_STRICT); | ||||
| ini_set('display_errors', 1); | ini_set('display_errors', 1); | ||||
| $include_path = ini_get('include_path'); | $include_path = ini_get('include_path'); | ||||
| ini_set( | ini_set( | ||||
| 'include_path', | 'include_path', | ||||
| $include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../'); | $include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../'); | ||||
| @include_once 'libphutil/scripts/__init_script__.php'; | @include_once 'libphutil/scripts/__init_script__.php'; | ||||
| if (!@constant('__LIBPHUTIL__')) { | if (!@constant('__LIBPHUTIL__')) { | ||||
| echo "ERROR: Unable to load libphutil. Update your PHP 'include_path' to ". | echo "ERROR: Unable to load libphutil. Update your PHP 'include_path' to ". | ||||
| "include the parent directory of libphutil/.\n"; | "include the parent directory of libphutil/.\n"; | ||||
| exit(1); | exit(1); | ||||
| } | } | ||||
| phutil_load_library('arcanist/src'); | phutil_load_library('arcanist/src'); | ||||
| phutil_load_library(dirname(__FILE__).'/../src/'); | phutil_load_library(dirname(__FILE__).'/../src/'); | ||||
| PhabricatorEnv::initializeScriptEnvironment(); | PhabricatorEnv::initializeScriptEnvironment(); | ||||
| } | } | ||||
| init_phabricator_script(); | init_phabricator_script(); | ||||