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
Remove " " being considered as an invalid filename for is_file()
#7186
Remove " " being considered as an invalid filename for is_file()
#7186
Conversation
Looks like that was added to the test 13 years ago: f689708 |
I've been trying to think through this and figure out whether a space character should still be tested, but if space can be a valid filename, then |
This is probably test parallelisation issue. Some other test must be creating that file, else it wouldn't exist. |
Indeed, what I wonder is how many failed builds have been triggered by this one. |
I also think this is what is happening, but if a space is a valid file name, then Given that, it seems to me this is safe to remove. Why anyone would want to use U+0020 as a file name, I have no idea. 🤷🏻♂️ |
Nowadays, we don't test ZPP, and will refuse to merge such tests. This test was clearly written to test the 'p' specifier for ZPP, and some false assumptions were made about how paths were handled at that time. IMO the test should be removed, or rewritten so that it makes sense. If this test provides no additional coverage to php_stat, then drop it. |
Did tests with code coverage with and without the file: no changes to the whole |
Yes please. |
Some builds fail because of it, last one to date is: https://travis-ci.com/github/php/php-src/jobs/517817543
9991a2f
to
a235dc1
Compare
Those were testing the `p` parameter for ZPP.
a235dc1
to
f626de2
Compare
Some builds fail because of it, last one to date is: https://travis-ci.com/github/php/php-src/jobs/517817543