php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56175 Debian magic database
Submitted: 2004-08-20 05:50 UTC Modified: 2004-08-20 11:12 UTC
From: alex at passant dot org Assigned: iliaa (profile)
Status: Closed Package: Fileinfo (PECL)
PHP Version: 4.3.3 OS: GNU/Linux Debian
Private report: No CVE-ID: None
 [2004-08-20 05:50 UTC] alex at passant dot org
Description:
------------
Hi,

As Debian uses /usr/share/misc/file/magic as its main magic database, maybe it would be cool to add this path in first position of MAGIC_MIME_LOCATIONS in config.m4 (/etc/magic exists but is empty by default so if we leave default config.m4 or put new path at the end, compilation is ok but we've got error on running ("Warning: finfo_open(): Failed to load magic database at '/etc/magic'")

Cheers


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-20 09:48 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2004-08-20 10:59 UTC] alex at passant dot org
Hi,

Thank you for fixing it in CVS.

Yet, I don't know if it's specific to Debian, but as I noticed on my first message, it works only if the new path is before /etc/magic; and I saw you put it after.

Cheers
 [2004-08-20 11:12 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC