|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-04 07:50 UTC] sniper@php.net
[2005-12-12 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
Description: ------------ mod_php-4.4.0-r9 apache-2.0.54-r31 I'm unable to upgrade to 4.4.1. Gentoo has not marked it stable yet. mime_content_type() always returns a blank value. echo mime_content_type('xface.jpg'); I've verified that php is compiled with mime support: --with-mime-magic=/usr/share/misc/file/magic.mime' mime_magic.magicfile /usr/share/misc/file/magic.mime /usr/share/misc/file/magic.mime That file exists. ls -al /usr/share/misc/file/magic.mime -rw-r--r-- 1 root root 31282 Oct 9 10:42 /usr/share/misc/file/magic.mime Reproduce code: --------------- echo mime_content_type('xface.jpg'); Expected result: ---------------- Would expect content type returned. Actual result: -------------- blank 'no value' was returned