Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #60506
License MIT

The recursive closure kept $streams (and therefore the original resources) reachable until the GC cycle collector ran, so multipart uploads held file handles even after the request lifecyle ended. Setting $caster = null breaks the cycle immediately, letting the resources be released right after the request.

@carsonbot carsonbot added this to the 6.4 milestone Nov 24, 2025
@nicolas-grekas nicolas-grekas merged commit 48ddde4 into symfony:6.4 Nov 27, 2025
11 checks passed
@nicolas-grekas nicolas-grekas deleted the hc-gc branch December 7, 2025 10:48
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.

2 participants