Bug #88571
closedphp extension fileinfo not required
0%
Description
Class typo3/sysext/core/Classes/Type/File/FileInfo.php provides a function getMimeType, which uses functions of php extension fileinfo. If this extension is not available, mimetype will probably be false, at least if it is not provided by custom configuration via $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType'].
In order to properly provide mimetype detection, the php extension fileinfo needs to be a requirement.
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61049
Updated by Benni Mack over 5 years ago
Anja Leichsenring wrote:
Class typo3/sysext/core/Classes/Type/File/FileInfo.php provides a function getMimeType, which uses functions of php extension fileinfo. If this extension is not available, mimetype will probably be false, at least if it is not provided by custom configuration via $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType'].
In order to properly provide mimetype detection, the php extension fileinfo needs to be a requirement.
There are circumstances where "fileinfo" is not provided (custom php compilation, also on cloud hosting - I know that this was an issue with Microsoft Azure in TYPO3 v8), so we'd prevent having TYPO3 on these systems... for now we'd have that fallback in place and use it as "suggest".
Updated by Oliver Hader over 5 years ago
- Related to Task #74177: Remove fileinfo as dependency in SystemEnvironment/Check added
Updated by Oliver Hader over 5 years ago
\finfo
was not available on PHP7 environments - e.g.
Updated by Anja Leichsenring over 5 years ago
- Status changed from Under Review to Rejected