#35541 [NEW]: mime_content_type() always returns blank value
| From: | whitehatcheck at yahoo dot com | Date: | Sun, 04 Dec 2005 05:52:58 +0000 |
| Subject: | #35541 [NEW]: mime_content_type() always returns blank value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-89698@lists.php.net to get a copy of this message | ||
From: whitehatcheck at yahoo dot com
Operating system: Gentoo 2.6 kernel
PHP version: 4.4.1
PHP Bug Type: Unknown/Other Function
Bug description: mime_content_type() always returns blank value
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 bug report at http://bugs.php.net/?id=35541&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35541&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35541&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35541&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35541&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35541&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35541&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35541&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35541&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35541&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35541&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35541&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35541&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35541&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35541&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35541&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35541&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35541&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35541&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35541&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35541&r=mysqlcfg