Skip to content

[HttpKernel] Throw when HttpKernel is created and the env is empty #41402

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

Merged
merged 1 commit into from
May 24, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Providing an empty env leads to an undefined behavior, better forbid it. This will fail at compile time, so it should be safe; but still submitting on 5.3 for extra safety.

@nicolas-grekas nicolas-grekas changed the title [HttpKernel] Throw when HttpKernel is create and the env is empty [HttpKernel] Throw when HttpKernel is created and the env is empty May 24, 2021
@fabpot
Copy link
Member

fabpot commented May 24, 2021

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 7e9dbec into symfony:5.3 May 24, 2021
@nicolas-grekas nicolas-grekas deleted the hk-empty-env branch May 27, 2021 13:00
@fabpot fabpot mentioned this pull request May 31, 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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy