@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Explicitly set Arcanist path for @include_once in scripts/init/lib.php

Summary: Do the same $root dance as already existing in PhabricatorStartup.php to avoid a static code analysis error.

Test Plan:
Run PhpStan, do not get the following output anymore:
`/var/www/html/phorge/phorge/scripts/init/lib.php:12: Path in include_once() "arcanist/support/init/init-script.php" is not a file or it does not exist.`

Reviewers: O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26627

+6 -1
+6 -1
scripts/init/lib.php
··· 4 4 error_reporting(E_ALL); 5 5 ini_set('display_errors', 1); 6 6 7 + $root = null; 8 + if (!empty($_SERVER['PHUTIL_LIBRARY_ROOT'])) { 9 + $root = $_SERVER['PHUTIL_LIBRARY_ROOT']; 10 + } 11 + 7 12 $include_path = ini_get('include_path'); 8 13 ini_set( 9 14 'include_path', 10 15 $include_path.PATH_SEPARATOR.dirname(__FILE__).'/../../../'); 11 16 12 - $ok = @include_once 'arcanist/support/init/init-script.php'; 17 + $ok = @include_once $root.'arcanist/support/init/init-script.php'; 13 18 if (!$ok) { 14 19 echo 15 20 'FATAL ERROR: Unable to load the "Arcanist" library. '.