Mandrake Linux Archives: cooker@mandrivalinux.org

Mandrake Linux: cooker@mandrivalinux.org


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

  • From: [f.faber-pro]
  • Subject: [Cooker] [Bug 16378] [php4-mime_magic] New: mime_content_type doesn't returm mimetype for PDF files
  • Date: 10 Jun 2005 16:41:01 -0000

User ID: 8295, 135 bugs reported (74 fixed, 9 duplicate, 19 invalid), 739 comments.

http://qa.mandriva.com/show_bug.cgi?id=16378

      Distribution: Cooker
           Summary: mime_content_type doesn't returm mimetype for PDF files
           Product: php4-mime_magic
           Version: 4.3.11-1mdk
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: program
        AssignedTo: qa@mandriva.com
        ReportedBy: f.faber-pro@ifrance.com


mime_content_type doesn't returm mimetype for PDF files. 
I had to manually modify /usr/share/misc/magic.mime and replace "PDF document" 
by application/pdf or else it will not sy this is a PDF file. 
 
I know there's better extensions like php-fileinfo, but unfortunately 
php-fileinfo is only available for PHP5 and i have to keep PHP4. 
 
 
[root@info1 ~]# grep -i pdf /usr/share/misc/magic.mime 
0       string  !<PDF>!\n               application/x-prof 
0       string          PDF                     Macintosh PDF File (data) 
65      string          PDF                     Macintosh PDF File(rsrc + data) 
0       string          %PDF-           PDF document 
[root@info1 ~]# vim /usr/share/misc/magic.mime 
[root@info1 ~]# service httpd restart 
Shutting down httpd:                                            [  OK  ] 
Starting httpd:                                                 [  OK  ] 
[root@info1 ~]# grep -i pdf /usr/share/misc/magic.mime 
0       string  !<PDF>!\n               application/x-prof 
0       string          PDF                     Macintosh PDF File (data) 
65      string          PDF                     Macintosh PDF File(rsrc + data) 
0       string          %PDF-           application/pdf

-- 
Configure bugmail: http://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



Date Index | Thread Index

Search the archive:



To (un)subscribe from/to the lists:

Sympa mailing lists server.





Fund the Mandriva Linux project

Looking for a job?