Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FileInfo not working in php 5.3.3

Tags:

php

fileinfo

I'm making a simple call to finfo_open() and I get:

"Call to undefined function finfo_open()"

Isn't FileInfo packaged with php 5.3.3 (Unix). Do I need to turn it on in php.ini?

Thanks

like image 626
Pardoner Avatar asked Nov 13 '22 21:11

Pardoner


1 Answers

It looks like you could get it enabled but you're missing some constants. These are the values from my system:

FILEINFO_NONE = 0
FILEINFO_SYMLINK = 2
FILEINFO_MIME = 1040
FILEINFO_MIME_TYPE = 16
FILEINFO_MIME_ENCODING = 1024
FILEINFO_DEVICES = 8
FILEINFO_CONTINUE = 32
FILEINFO_PRESERVE_ATIME = 128
FILEINFO_RAW = 256

Maybe it helps.

like image 183
hakre Avatar answered Jan 03 '23 01:01

hakre