8000 [HttpFoundation] Fix str_contains type mismatch in ApacheRequest by bobvandevijver · Pull Request #42317 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation] Fix str_contains type mismatch in ApacheRequest #42317

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

Closed

Conversation

bobvandevijver
Copy link
Contributor
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

When scanning for more possible error like fixed in #42316, I found this one. I decided to create a separate MR as I'm not sure falling back to / would be the desired behaviour for a missing REQUEST_URI, or that maybe an exception would be more suitable.

@derrabus
Copy link
Member

I don't think that this change is necessary. This class is meant to be used when serving a request inside an Apache HTTPd. And in that context, REQUEST_URI should always be set.

@bobvandevijver
Copy link
Contributor Author
bobvandevijver commented Jul 29, 2021

Should is not must, but I agree that this will be an uncommon if not ever happening case. Anyways, feel free to close it, that's also why I made this a separate PR!

@derrabus
Copy link
Member

Let's close then. I'd rather not change that class unless someone really encounters an issue with this.

@derrabus derrabus closed this Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0