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

ensure php-self is normalized #1136

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

ensure php-self is normalized #1136

wants to merge 2 commits into from

Conversation

withinboredom
Copy link
Collaborator

I believe this closes #1133

@@ -176,6 +176,53 @@ func testServerVariable(t *testing.T, opts *testOptions) {
}, opts)
}

func TestUnusualServerVariable_module(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the result of this test would be the same if it was done with caddy_test

@dunglas
Copy link
Owner

dunglas commented Nov 5, 2024

While the patch doesn't seem to do any harm, to be honest, I don't understand exactly what it fixes. Does it make the behavior similar to FPM?

@withinboredom
Copy link
Collaborator Author

For Caddy, there is no change. This is only required for non-caddy usages of FrankenPHP. I'd be happy just documenting it, if that makes more sense. It appears that this causes a small performance hit and I suspect most people are using Caddy + FrankenPHP.

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.

Ensure some $_SERVER variables have the right values
3 participants