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] Avoid memory leaks cache attribute, profiler listener#60934

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

Open
andrew-demb wants to merge3 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromandrew-demb:avoid-memory-leaks-cache-attribute

Conversation

andrew-demb
Copy link
Contributor

@andrew-dembandrew-demb commentedJun 28, 2025
edited
Loading

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
Issues
LicenseMIT

For the current moment, if theonKernelTerminate /onKernelResponse methods won't be called, the listener's state won't be reset between requests.

Please let me know if this should be considered as a new feature - to retarget PR to the 7.3 branch

Similar to PR#60933

@carsonbotcarsonbot added this to the6.4 milestoneJun 28, 2025
@andrew-dembandrew-demb changed the title[HttpKernel.] Avoid memory leaks cache attribute listener[HttpKernel] Avoid memory leaks cache attribute listenerJun 28, 2025
@andrew-dembandrew-dembforce-pushed theavoid-memory-leaks-cache-attribute branch froma3367a0 to5996644CompareJune 28, 2025 00:51
@andrew-demb
Copy link
ContributorAuthor

CI failure is unrelated

There was 1 failure:1) Symfony\Bundle\FrameworkBundle\Tests\Functional\CachePoolsTest::testCachePoolsFailed asserting that true is false.

@nicolas-grekas
Copy link
Member

Introducing an new method means this is a new feature, it should target 7.4

andrew-demb reacted with thumbs up emoji

@@ -4,6 +4,7 @@ CHANGELOG
6.4
---

* `Symfony\Component\HttpKernel\EventListener\CacheAttributeListener` is now resettable to prevent memory leaks
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
*`Symfony\Component\HttpKernel\EventListener\CacheAttributeListener` is now resettable to prevent memory leaks
*`Symfony\Component\HttpKernel\EventListener\CacheAttributeListener` is now resettable to prevent memory leaks

andrew-demb reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

fixed, thanks

@andrew-dembandrew-dembforce-pushed theavoid-memory-leaks-cache-attribute branch from5996644 to2e51bdcCompareJune 28, 2025 11:50
@andrew-dembandrew-demb changed the base branch from6.4 to7.4June 28, 2025 11:51
@andrew-dembandrew-dembforce-pushed theavoid-memory-leaks-cache-attribute branch from2e51bdc toa7c7c72CompareJune 28, 2025 11:53
@andrew-dembandrew-demb changed the title[HttpKernel] Avoid memory leaks cache attribute listener[HttpKernel] Avoid memory leaks cache attribute, profiler listenerJun 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@lyrixxlyrixxAwaiting requested review from lyrixx

@ycerutoycerutoAwaiting requested review from yceruto

@chalasrchalasrAwaiting requested review from chalasr

@dunglasdunglasAwaiting requested review from dunglas

@jderussejderusseAwaiting requested review from jderusse

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

4 participants
@andrew-demb@nicolas-grekas@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp