Skip to content

Phar offset exist issue with entry classes not based on PharFileInfo #14503

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

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jun 7, 2024

When checking for the existence of a directory the entry CE should be based on PharFileInfo, as SplFileInfo does not accept directories.

@Girgias Girgias force-pushed the phar-offset-exist-issue branch from ca3e379 to f434a44 Compare June 8, 2024 01:02
@Girgias Girgias marked this pull request as ready for review June 8, 2024 16:06
@Girgias Girgias force-pushed the phar-offset-exist-issue branch from f434a44 to 69451e4 Compare August 23, 2024 17:13
@Girgias Girgias requested a review from nielsdos August 23, 2024 17:13
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

So bizarre.
I wonder if this was somehow intended; although that would be weird as offsetExists should be consistent with offsetGet. Anyway, this patch seems fine.

@Girgias
Copy link
Member Author

Girgias commented Aug 23, 2024

I have no idea what the rationale is, and when I talked to people that use/build phar they didn't even know you could have something other than PharFileInfo.

@Girgias Girgias merged commit 01c6b48 into php:master Aug 23, 2024
10 checks passed
@Girgias Girgias deleted the phar-offset-exist-issue branch August 23, 2024 20:06
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