https://github.com/karser/php_bug_mime_content_type_doubles_result
mime_content_type bug reproducer: result gets doubled for xlsx
https://github.com/karser/php_bug_mime_content_type_doubles_result
Last synced: 5 months ago
JSON representation
mime_content_type bug reproducer: result gets doubled for xlsx
- Host: GitHub
- URL: https://github.com/karser/php_bug_mime_content_type_doubles_result
- Owner: karser
- Created: 2019-03-23T10:23:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-23T10:24:49.000Z (over 7 years ago)
- Last Synced: 2025-02-14T04:47:54.711Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Starting from php 7.3.2 function mime_content_type doubles the result for xlsx files created in LibreOffice (6.0.7.3). While php 7.3.1 works correctly.
```
docker build --no-cache --build-arg PHP_VER=7.3.2 .
Step 5/5 : RUN php -r "var_dump(mime_content_type('/test.xlsx'));"
---> Running in 71f6655ae0ed
string(130) "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
docker build --no-cache --build-arg PHP_VER=7.3.1 .
Step 5/5 : RUN php -r "var_dump(mime_content_type('/test.xlsx'));"
---> Running in 27e744a45920
string(65) "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
```