Description of problem: I can't use the PHP function mime_content_type(), because PHP is compiled without "--with-mime-magic", that refers to the following error: "Fatal error: Call to undefined function: mime_content_type() in ..." Version-Release number of selected component (if applicable): php-4.3.8-4 How reproducible / Steps to Reproduce: Everytime, see above. Actual results: Compiling PHP with the configure parameter '--with-mime-magic' would solve this problem. We also should set mime_magic.magicfile = "/usr/share/file/magic.mime" in the /etc/php.ini then, because Red Hat doesn't deliver the default expected magic.mime in /usr/share/misc/. Expected results: PHP with '--with-mime-magic'.
Oh, I saw, that it is even more easily (so threw my other text above away): --- snipp --- --- php.spec 2004-08-19 00:26:27.000000000 +0200 +++ php.spec.rsc 2004-08-19 00:28:54.000000000 +0200 @@ -408,6 +408,7 @@ --enable-dio \ --enable-mbstring=shared --enable-mbstr-enc-trans \ --enable-mbregex \ + --with-mime-magic=%{_datadir}/file/magic.mime $* || tail -300 config.log make %{?_smp_mflags} --- snapp --- And this bug is a Red Hat related bug, because magic.mime is not delivered to the default places where it should be. Normally mime- magic support is enabled per default. I also didn't pass '%{_datadir}/magic.mime' because it's only a symbolic link, that maybe will go away...
Needs a "Requires: file" file too, presumably. Just checking how big this extension is before enabling.
Compared without the "Requires: file" (hehe, a few bytes more), I've got the following result here (complete size of all (src) rpms): 9,608 MB with mime magic 9,592 MB without mime magic also ~ 16 KB more at my build system. I think the size shouldn't be the problem for this (normally default) extension.
*** Bug 112859 has been marked as a duplicate of this bug. ***
Works for me then. Added in 4.3.8-5; thanks for the report.