-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[MimeType] Duplicated MimeType due to PHP Bug #37291
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
Conversation
Thank you for telling us about this. |
Any news? fabbot has also some fixes for you. |
@nicolas-grekas I tried changing the base, but looks like 3.4 does not have that file. I'll be creating some test cases today and apply patches from fabbot as mentioned by @fabpot |
NVM realized it is just on another place. I'll be doing the change in a bit. |
a83d5f8
to
d9d155f
Compare
@nicolas-grekas I have encountered 2 issues with my PR and would like to ask for suggestions. |
I'd suggest skipping the test on PHP5 by adding an `@requires PHP 7 annotation on the test case. |
@nicolas-grekas Done thanks :). |
Thank you @juanmrad. |
Issue:
Currently there is a PHP bug https://bugs.php.net/bug.php?id=77784 that is causing several MimeTypes to be given as duplicated:
Instead of:
This Patch will fix the Issues by checking if a returned MimeType is duplicated and return appropriate MimeType.
This patch should be reverted if the PHP Bug is ever fixed.