ID: 35541 Updated by: [EMAIL PROTECTED] Reported By: whitehatcheck at yahoo dot com -Status: Open +Status: Feedback -Bug Type: Unknown/Other Function +Bug Type: *General Issues Operating System: Gentoo 2.6 kernel PHP Version: 4.4.1 New Comment:
Try using some other mime.magic file. This works just fine for me in PHP 5.1.2-dev. This is what I have in my php.ini: mime_magic.magicfile="/etc/httpd/conf/magic" Previous Comments: ------------------------------------------------------------------------ [2005-12-04 06:52:56] whitehatcheck at yahoo dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35541&edit=1