Skip to content

📦 Use WeakMap instead of SplObjectStorage to avoid memory leak #404

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrew-demb
Copy link

https://www.php.net/manual/en/class.weakmap.php

Using WeakMap will avoid preserving objects in memory if they are presented only in cache

@andrew-demb
Copy link
Author

I'll push fixes ASAP

@garak garak requested a review from stof May 8, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants