Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 58479

Summary: Missing magic.mime support in mod_php-5.0.0
Product: Gentoo Linux Reporter: Michael Locher <xray>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 56963    

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.