Topic: php-5.3.1-1.el5.remi, mime magic support missing

Hi,

I installed the php-5.3.1-1.el5.remi package on Centos 5.4 32 bits.
Looking at the compile option "--with-mime-magic=/usr/share/file/magic" used to build this package, I would expect mime magic support.

But looking at this output:

php -i |grep mime_magic

which returns nothing, it does not seem to have this support included.

On an other install with the default Centos php-5.1.6 rpm installed, I get this output.

mime_magic
mime_magic support => invalid magic file, disabled
mime_magic.debug => Off => Off
mime_magic.magicfile => /usr/share/file/magic.mime => /usr/share/file/magic.mime


Am I overlooking something?

Justin

Re: php-5.3.1-1.el5.remi, mime magic support missing

$ php -r 'print_r(get_defined_functions());' | grep mime_content
            [1007] => mime_content_type

mime_magic extension is deprecated and no more provided with PHP 5.3.0 (option --with-mime-magic is not used and will be removed in next build)

but mime_content_type() is now provided by Fileinfo (just a wrapper/alias to finfo_file).

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi