Skip to content

Conversation

alexandre-daubois
Copy link
Member

No description provided.

@alexandre-daubois alexandre-daubois linked an issue Sep 25, 2025 that may be closed by this pull request
@alexandre-daubois alexandre-daubois marked this pull request as ready for review September 25, 2025 09:06
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Looks reasonable

@nielsdos
Copy link
Member

Will this break for non-seekable file streams?

@alexandre-daubois
Copy link
Member Author

Good catch, I added checks to only perform this on seekable streams + a test to cover it.

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.

iterator_count() on an SplFileObject runs endlessly
3 participants