Skip to content

fix incorrect include - #134

Merged
TheWitness merged 3 commits into
Cacti:mainfrom
xmacan:fix_include_maint
Oct 16, 2026
Merged

TheWitness merged 3 commits into
Cacti:mainfrom
xmacan:fix_include_maint

Conversation

@xmacan

@xmacan xmacan commented Oct 15, 2026

Copy link
Copy Markdown
Member

we moved it

TheWitness
TheWitness previously approved these changes Oct 15, 2026
The maint include used file_exists(require_once(...)), which evaluates
require_once first (including the file as a side effect, or fataling when
it is absent) and then tests file_exists() on its return value. Replace it
with a straightforward file_exists() probe that prefers the relocated
plugins/maint/includes/functions.php and falls back to the legacy
plugins/maint/functions.php.

Also add servcheck_process.php to the patch-coverage unmeasured allowlist:
it is a CLI/daemon poller entry point (shebang, chdir + include, pcntl
signal handling) that cannot be loaded into the isolated unit process, so
it can never appear in the Clover report. This clears the failing
'changed production PHP files are not measured or allowlisted' gate.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TheWitness
TheWitness merged commit a59cb48 into Cacti:main Oct 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants