Skip to content

Handle shell_exec using the spawnProcess callback #906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Dec 28, 2023

Continues the work from #710 and #596. Rewires the PHP VCWD_POPEN macro used internally to spawn a new process to Playground-provided implementation called wasm_popen. This enables handling the shell_exec calls using the same createSpawnHandler() JavaScript callback as all the other process-opening functions like proc_open, system, or exec

Testing instructions

This PR ships a unit test for shell_exec() so you just need to confirm that test passes.

@adamziel adamziel marked this pull request as ready for review January 8, 2024 11:57
@adamziel adamziel merged commit 0284cdc into trunk Jan 8, 2024
@adamziel adamziel deleted the fix-shell-exec branch January 8, 2024 12:08
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