Skip to content

feat(php-cli): add support for -i and -v flags#1686

Closed
alexandre-daubois wants to merge 1 commit intophp:mainfrom
alexandre-daubois:flags-phpcli
Closed

feat(php-cli): add support for -i and -v flags#1686
alexandre-daubois wants to merge 1 commit intophp:mainfrom
alexandre-daubois:flags-phpcli

Conversation

@alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Jun 25, 2025

May fix #702

Proposing this draft for review to validate the approach mentioned in the issue's comment: #702 (comment)

alex@alex-macos frankenphp % ./frankenphp php-cli -v
8.3.21-dev
alex@alex-macos frankenphp % ./frankenphp php-cli -i
phpinfo()
PHP Version => 8.3.21-dev

System => Darwin alex-macos 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:43 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8132 arm64
Build Date => Jun 23 2025 15:07:32
...

@alexandre-daubois alexandre-daubois changed the title feat: add support for -i and -v flags when using php-cli feat(php-cli): add support for -i and -v flags Jun 25, 2025
@alexandre-daubois
Copy link
Member Author

@withinboredom Kevin told me that you may have start some work in php-src to mutualize some code between SAPIs?

@dunglas
Copy link
Member

dunglas commented Jun 26, 2025

For the record, I was refering to this: #1632 (comment)

@withinboredom
Copy link
Member

@alexandre-daubois indeed! I will have a PR in the next week or so. I'm working on it alongside a branch of frankenphp that uses it to make sure it gives us what we need. I'll share that in the next couple of days if everything continues to go well.

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.

phpinfo command

3 participants