php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27106 PHP doesn't accept own magic.mime file
Submitted: 2004-01-31 09:56 UTC Modified: 2004-02-01 05:46 UTC
From: martin dot segatz at gmx dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5CVS-2004-01-31 (dev) OS: Windows 2000 SP3/XP SP1
Private report: No CVE-ID: None
 [2004-01-31 09:56 UTC] martin dot segatz at gmx dot net
Description:
------------
PHP doesn't accept the bundeled magic.mime file but the Apache magic file.

Tested with latest Win32 CVS build (200401311130) on Windows 2000 SP3 and Windows XP SP1

PHP 5.0.0b3 doesn't accept either one but the snapshot accepts the Apache file.

Reproduce code:
---------------
-- php.ini
mime_magic.magicfile = "/path/to/bundeled/magic.mime"

-- code
<?php
phpinfo();
?>

Expected result:
----------------
mime_magic

mime_magic support => enabled

Actual result:
--------------
mime_magic

mime_magic support => invalid magic file, disabled

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-31 23:19 UTC] sniper@php.net
RTFM:

"The extension needs a copy of the simplified magic file that is distributed with the Apache httpd."

And it works fine for me with the Apache provided file.

 [2004-02-01 05:46 UTC] martin dot segatz at gmx dot net
How about setting it to Feedback?
I RTFM and checked everything twice.

Tested again 5.0.0b3 and CVS on another WinXP that had never seen any PHP version and there are the same problems.

       |  5b3 | 5CVS
-------+------+------
PHP    | FAIL | FAIL
-------+------+------
Apache | FAIL |  OK

Why is there a magic.mime bundeled with PHP when you can't use it?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 06:01:32 2024 UTC