Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97054 - PECL-fileinfo-0.3 available
Summary: PECL-fileinfo-0.3 available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-25 11:37 UTC by Michael Cramer
Modified: 2005-06-25 23:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2005-06-25 11:37:21 UTC
PECL-fileinfo in version 0.3 is available, i noticed that, after i had many
problems with the 0.2 version in portage. the included fileinfo.php in version
0.2 gives my this with php5.1 

Warning: finfo_open(): Failed to load magic database at ''. in
/root/fileinfo.php on line 10

Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_file(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 13


Warning: finfo_close(): supplied argument is not a valid file_info resource in
/root/fileinfo.php on line 15

Warning: finfo::finfo(): Failed to load magic database at ''. in
/root/fileinfo.php on line 24

Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27


Warning: finfo::buffer(): The invalid fileinfo object. in /root/fileinfo.php on
line 27

so i take a look at the pecl page for bugs and noticed there is a new version,
now i got with the fileinfo.php in package 0.3 this:

application/x-not-regular-file
application/x-not-regular-file
text/plain; charset=us-ascii
application/x-gzip
application/x-shellscript
text/x-c++; charset=us-ascii
application/x-shellscript
application/x-not-regular-file
application/x-shellscript
application/x-bzip2
application/x-not-regular-file
text/plain; charset=us-ascii
text/plain; charset=us-ascii
text/plain; charset=us-ascii
ASCII text, with no line terminators
ASCII text, with no line terminators
ASCII text
tar archive (gzip compressed data, from Unix)
Bourne-Again shell script text executable
PHP script text
Bourne shell script text executable
ASCII text, with no line terminators
Bourne-Again shell script text executable
bzip2 compressed data, block size = 900k
ASCII text, with no line terminators
ASCII text
ASCII English text, with very long lines, with overstriking
ASCII text

i think this looks as it should be.

also this package should be installed when installing horde, because it relays
on it, not hardly but it's better. for me it is the only solution to get a mime
detection because my phpinfo() shows me for mime_magic:
mime_magic support	invalid magic file, disabled

i hope this can be done quickly

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sebastian Bergmann (RETIRED) gentoo-dev 2005-06-25 23:14:52 UTC
PECL-Fileinfo-0.3 is in the tree now.