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

Bug 117556

Summary: no way to set --with-mime-magic for dev-lang/php
Product: Gentoo Linux Reporter: Jaco Kroon <jaco>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jaco Kroon 2006-01-03 01:48:15 UTC
I'm currently trying to use the mime_content_type function from a php script, but unfortunately I get the following error:

Fatal error: Call to undefined function mime_content_type() in /path/to/my/php/file.php on line 74

Reading the documentation (http://docs.cs.up.ac.za/programming/html/php-manual/ref.mime-magic.html) it is revealed that php needs to be compiled with --with-mime-magic in order to obtain this function.  I suggest making use of the mime USE flag to conditionally set pass this parameter for the configure line.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-03 02:06:38 UTC

*** This bug has been marked as a duplicate of 108879 ***