Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] Reset services between requests performed by KernelBrowser#45479

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:4.4fromnicolas-grekas:hk-browser-reset
Feb 19, 2022

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedFeb 18, 2022
edited
Loading

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#40965
LicenseMIT
Doc PR-

This fixes memory leaks caused by the container not being reset between requests made viaKernelBrowser whennot callingKernelBrowser::disableReboot();.

There is already a call to$container->reset() inKernelTestCase::ensureKernelShutdown(), butKernelBrowser creates new container instances for each requests, and those containers were never reset.

kbond reacted with heart emoji
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commita3bceff intosymfony:4.4Feb 19, 2022
This was referencedFeb 28, 2022
@nicolas-grekasnicolas-grekas deleted the hk-browser-reset branchFebruary 28, 2022 08:54
nicolas-grekas added a commit that referenced this pull requestMar 1, 2022
…icolas-grekas)This PR was merged into the 4.4 branch.Discussion----------[FrameworkBundle] Fix resetting container between tests| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |Fix#40965,fix#45580| License       | MIT| Doc PR        | -Replaces#45479 and#45581, related to#34078.Calling `boot()` on an already booted kernel does reset the container, so we don't need to care anymore about the state of kernel.#45580 is fixed by removing `private static $kernelContainer`, which can be out of sync with `static::$kernel->getContainer()` since `KernelBrowser` creates new containers when shutting down the kernel between requests.Commits-------4453bdb [FrameworkBundle] Fix resetting container between tests
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@ycerutoycerutoyceruto approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp