Skip to content
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

feat: '-r' option for php-cli #1482

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat: '-r' option for php-cli #1482

wants to merge 5 commits into from

Conversation

AlliBalliBaba
Copy link
Collaborator

This PR adds the -r option for directly executing code with php-cli

frankenphp php-cli -r "echo 'Hello world'";

This can be useful in some situations where PHP is not directly installed on the system, but some library setup code uses the -r flag

The main reason I'm adding this option though is to have another sanity check for the static binaries after compilation.

@AlliBalliBaba
Copy link
Collaborator Author

As expected mac/arm currently fails the sanity check https://github.com/dunglas/frankenphp/actions/runs/14283719364/job/40036289078?pr=1482

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