Scott MacVicar
e10b18693c
MFH fileinfo tests are missing skipif
2009-03-15 23:17:28 +00:00
Scott MacVicar
7a29c8f386
MFH Update fileinfo to libmagic 5.00 and remove dependency on dirent.h on Windows
2009-03-15 23:04:19 +00:00
Scott MacVicar
3a93ef37c4
MFH Warnings from libmagic should be notices rather than sent to stderr, this fixes a test on Windows
2008-11-22 10:29:05 +00:00
Scott MacVicar
3e543f2464
MFH: Sync libmagic with 4.26 and add support for the new v6 magic file format
2008-11-02 16:13:49 +00:00
Derick Rethans
bac72c6052
- MFH: Fixed mime-type generation.
...
#- Charset markers need to be prepended with ; -- the tests were also wrong.
2008-10-08 09:44:24 +00:00
Felix De Vliegher
7251de9eb8
MFH: More fileinfo tests.
2008-09-15 08:51:43 +00:00
Felipe Pena
11319aa113
- New test
2008-09-02 19:28:21 +00:00
Pierre Joye
ed4db08f69
- fix test (file or path not found) (Thanks Dmitry for the notice)
2008-09-02 10:28:11 +00:00
Pierre Joye
c8a0c3b0f5
- don't close caller streams in libmagic (prevent leak and zombie stream)
...
- string returned by magic_* are freed on magic_close, duplicate before
calling magic_close (set return value)
- if stat failed, don't try to call magic_* (when FILEINFO_MODE_FILE)
2008-09-02 10:15:54 +00:00
Felipe Pena
d13b704d25
- Fixed mime_content_type() behavior when a string is given
...
- Fixed check for "empty file name"
- MFH: New test
2008-09-01 23:44:00 +00:00
Pierre Joye
99041160df
- use php's stream in libmagic
...
- remove duplicate code (like mime_content_type() compatibility function
now use the same base as finfo_file())
- make it portable (works now on windows too, belongs other OSes)
- ([20:28] <lsmith> Pierre: ok please commit)
2008-09-01 18:56:06 +00:00
Felipe Pena
9566ebabcb
- Fixed tests (Disable COMPRESS support for now)
2008-08-29 15:28:45 +00:00
Felix De Vliegher
ef8ae4dfc5
Some fileinfo tests
2008-08-29 10:29:55 +00:00
Scott MacVicar
907c24fd81
Test for fileinfo to check mime types.
2008-08-29 09:52:13 +00:00
Felipe Pena
7208556ca4
- MFH: Fixed check for empty file name
2008-08-27 01:04:23 +00:00
Felipe Pena
d8c43bde79
- MFH: Improved fix
2008-08-26 16:22:27 +00:00
Felipe Pena
727990f432
- MFH: Added check for empty file name
2008-08-26 15:06:28 +00:00