php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22912 --enable-mime-magic doesn't exist anymore.
Submitted: 2003-03-26 17:14 UTC Modified: 2003-03-31 13:38 UTC
From: magz at bop dot nu Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2RC1 OS: Redhat 7.3
Private report: No CVE-ID: None
 [2003-03-26 17:14 UTC] magz at bop dot nu
It seems like I cannot get mime_magic to build with 4.3.2RC1. It does work fine with 4.3.1. I have tried on 3 different machines running Redhat 7.2/7.3 with the same result:

[root@darkwing php-4.3.2RC1]# ./configure --enable-mime-magic
..
checking whether to include mime_magic support... no
..

[root@darkwing php-4.3.1]# ./configure --enable-mime-magic
..
checking whether to include mime_magic support... yes
..

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-27 07:49 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Works just fine here... do you have any of the following files on your system:
/usr/share/magic.mime /usr/share/misc/magic.mime /etc/magic.mime?
 [2003-03-27 07:54 UTC] moriyoshi@php.net
Since mime magic extension is originally derived from mod_mime_magic of Apache httpd project, it can only accept simplified magic files that come with Apache distribution.

 [2003-03-27 08:45 UTC] magz at bop dot nu
I got the same result with php4-STABLE-200303271430.


[root@darkwing php4-STABLE-200303271430]# slocate magic.mime
/usr/share/magic.mime

[root@x220 misc]# slocate magic.mime
/usr/share/misc/magic.mime
/usr/share/magic.mime
/usr/share/magic.mime.mgc

(darkwing=Redhat7.2, x220=Redhat7.3)

Doesn't 4.3.1 and 4.3.2 look for the same magic.mime file? Should I specify another magic-file, and if so, how? (I suppose ./configure doesn't look in /etc/php.ini?)
 [2003-03-27 09:25 UTC] sniper@php.net
Doing ./configure --help would have helped:

--with-mime-magic[=FILE]  Include mime_magic support. FILE is the optional pathname to the magic.mime file.

(it's not --enable anymore)

 [2003-03-27 09:26 UTC] sniper@php.net
And like Moriyoshi already pointed out, the extension
only works with the simplified magic file that comes
with Apache.

 [2003-03-27 09:40 UTC] magz at bop dot nu
Perhaps the online manual (http://www.php.net/manual/en/ref.mime-magic.php) should be updated with this information as well before 4.3.2 is being released.
 [2003-03-27 11:56 UTC] magnus@php.net
Reclassified, reopened, summary update.
Should be noted that it can only handle simplified magic files.
 [2003-03-31 13:38 UTC] moriyoshi@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.


 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of moriyoshi
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b0f6477bc408b7e2840566c64604c5bcfefb018d
Log: Fixed bug #22912 and #22275
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 29 23:00:03 2025 UTC