Commit Graph

5 Commits

Author SHA1 Message Date
Hannes Magnusson
d1d61ce612 Bug#54016 (finfo_file() Cannot determine filetype in archives) 2011-02-14 15:32:02 +00:00
Scott MacVicar
0ac605c41b fileinfo tests are missing skipif 2009-03-15 23:16:55 +00:00
Felipe Pena
ac3ae236ec - MFB:
- 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)

  - 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-07 20:29:54 +00:00
Felipe Pena
2058709940 - Improved fix 2008-08-26 16:19:29 +00:00
Felipe Pena
3ade387884 - Added check for empty file name 2008-08-26 15:03:33 +00:00