Skip to content

Conversation

adamziel
Copy link
Collaborator

Motivation for the change, related issues

Support spawning non-PHP processes via php.cli() calls if the binary name indicates a different program, e.g. ls.

> php.cli("ls", ["/"]);
dev
home
internal
proc
tmp

Implementation details

Detects whether the called library is php and, if not, defers to the spawn handler.

Testing Instructions (or ideally a Blueprint)

CI – this PR comes with a unit test.

Introduced sandboxedSpawnHandlerFactory support for `ls` and `pwd`
commands.

 ## Testing instructions

CI – this PR comes with a unit test.
@adamziel adamziel changed the base branch from trunk to php-implement-ls-and-pwd September 30, 2025 12:02
Base automatically changed from php-implement-ls-and-pwd to trunk September 30, 2025 12:53
@adamziel adamziel merged commit 7585252 into trunk Sep 30, 2025
26 checks passed
@adamziel adamziel deleted the php-cli-spawn-subprocess branch September 30, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant