Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58479 - Missing magic.mime support in mod_php-5.0.0
Summary: Missing magic.mime support in mod_php-5.0.0
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
Depends on:
Blocks: 56963
  Show dependency tree
Reported: 2004-07-26 17:14 UTC by Michael Locher
Modified: 2004-07-29 06:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Locher 2004-07-26 17:14:05 UTC
php5-sapi.eclass does not include the "--with-mime-magic=/usr/share/misc/file/magic.mime" configure switch, thus the mime_content_type() function is not available later.

Reproducible: Always
Steps to Reproduce:
1. emerge mod_php 5.0.0
2. render php page which uses mime_content_type() function
3. bang!

Actual Results:  
Fatal error: Call to undefined function mime_content_type() in
/opt/prukart/lib/card/document.php on line 195

Expected Results:  
rendered page
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2004-07-28 00:43:08 UTC
I've added support for a 'mime' USE flag to the various PHP ebuilds, which activates the support that you want.  The updated eclass should be on your local rsync mirror in about an hour.

Please test, and let me know how you get on.

Best regards,
Comment 2 Michael Locher 2004-07-29 00:50:10 UTC
the new mime useflag works perfectly. thanks!
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-07-29 06:04:30 UTC
Okay, thanks for the feedback!

Best regards,
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2004-07-29 06:04:58 UTC
Closing bug.