Skip to content

Fix GH-11338: SplFileInfo empty getBasename with more than on slash #11340

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

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

Regressed in 13e4ce3.

@nielsdos nielsdos requested review from dstogov and Girgias May 29, 2023 14:19
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.

I can confirm the regression: https://3v4l.org/JFmUj and see that this fixes it.

Are the normal basename() and filename() functions working as intended?

@nielsdos
Copy link
Member Author

nielsdos commented May 29, 2023

Are the normal basename() and filename() functions working as intended?

Yes, although AFAICT there is no filename() global function, basename() does work.

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.

SplFileInfo empty getBasename with more than on slash after PHP 8.1.1
2 participants