|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-02 19:19 UTC] rasi at xssn dot at
[2016-09-02 20:28 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: *General Issues
+Package: Filesystem function related
[2016-09-02 20:28 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Description: ------------ The string "(Singer/Songwriter) Andrea Schroeder Void" is reported as zlib mimetype by php. Test script: --------------- save above string in a file and use the following script to identify mimetype with php: <?php function mimetype($file) { $fileinfo = new finfo(FILEINFO_MIME_TYPE); $mimetype = $fileinfo->file($file); return $mimetype; } echo mimetype($argv[1]); Expected result: ---------------- I expect mimetype text/plain Actual result: -------------- Actual result is application/zlib