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

Add warnings to use php_sapi_name() to test when running as CLI #4337

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

jimwins
Copy link
Member

@jimwins jimwins commented Dec 22, 2024

This has been a recurring security problem encountered by packages, most recently Craft CMS, so it's probably worth some warnings in the documentation.

@kamil-tekiela
Copy link
Member

Perhaps an example would be good here because I don't actually know why that warning applies. I assume a lot of people will be confused too.

@jimwins jimwins merged commit 74ba8fe into php:master Dec 30, 2024
2 checks passed
@jimwins jimwins deleted the add-argv-warnings branch December 30, 2024 23:12
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.

2 participants