View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0023775||mantisbt||attachments||public||2018-01-03 15:30||2018-02-06 21:17|
|Target Version||2.11.0||Fixed in Version||2.11.0|
|Summary||0023775: Remove obsolete code that checks if PHP file info API is defined|
The min supported PHP version now has this API defined.
|Tags||No tags attached.|
@vboctor isn't this fixed in version 2.9.0 0023639 ?
@atrol You partially addressed finfo, but I did more. I think there is also more cleanup to be done here. For example, utility.php has
To reduce redundant code, wouldn't it be better to give function finfo_get_if_available a better name (remove _if_available) and use it in your new functions file_get_mime_type and file_get_mime_type_for_content (bad name btw)?
Will also add comments for this in PR.