|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-16 06:06 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ mime_content_type() will return text/plain for all files except if you set mime_magic.debug to On on php.ini. It won't work if you try to change it with ini_alter('mime_magic.debug'). Reproduce code: --------------- php.ini has mime_magic.magicfile = "/usr/share/misc/file/magic.mime" ;mime_magic.debug = On <?php echo mime_content_type('/bin/ping'); ?> Expected result: ---------------- application/x-executable Actual result: -------------- text/plain