Skip to content

Conversation

AhmedAlaa4611
Copy link
Contributor

@AhmedAlaa4611 AhmedAlaa4611 commented Mar 20, 2025

Description

This PR modifies the LazyCollection::make implementation to explicitly close the file handle after reading. This prevents potential resource leaks and ensures proper cleanup.

Changes

Added fclose($handle); after the while loop to close the file handle once reading is complete.

Why?

Ensure better resource management.

@taylorotwell taylorotwell merged commit 598cf05 into laravel:12.x Mar 20, 2025
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