Files
cacti/tests/fixtures/Console/cli/sleeper.php
Thomas Vincent 1ae479d4f5 feat(cli): add unified command frontend and normalize legacy failures (#7903)
* feat(cli): add unified command frontend and normalize legacy failures

Add the Symfony-backed bin/cacti entry point while preserving legacy argument, terminal, signal, and exit-status behavior. Fold in the focused legacy CLI correctness fixes from #7906 without adding its unused parser abstraction.

Keep path containment and the PHP 8.3 floor out of this review; the latter remains in #7939.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(cli): enforce PHP floor and deny web dispatch

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-09-07 18:36:55 -07:00

13 lines
340 B
PHP

<?php
require_once dirname(__DIR__, 4) . '/include/cli_only.php';
/* Publish the pid so the runner can signal exactly this process, then wait
* long enough to be killed but not long enough to stall a suite if it is not. */
if (isset($argv[1])) {
file_put_contents($argv[1], (string) getmypid());
}
fwrite(STDOUT, "ready\n");
sleep(5);