spiral / framework

High-Performance PHP Framework
https://spiral.dev
MIT License
1.82k stars 89 forks source link

fix: boot resource leakage #1151

Closed leon0399 closed 1 month ago

leon0399 commented 1 month ago
Q A
Bugfix? ✔️
Breaks BC?
New feature?
Issues N/A
Docs PR N/A

1137 introduced resource leakage by not freeing handles in some cases. This led to endless loop while trying to loadData or saveData

This PR should fix this bug by always attempting to close the resource

roxblnfk commented 1 month ago

LGTM