ID: 26064
Updated by: [email][/email]
Reported By: e05 at freemails dot ch
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Linux 2.4.20 (Debian)
PHP Version: 4.3.3
New Comment:

Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit [url][/url] as this bug system is not the
appropriate forum for asking support questions.

Thank you for your interest in PHP.

Sounds like a problem with your magic file used by the mime_magic

Previous Comments:

[2003-11-01 04:09:05] e05 at freemails dot ch

1st this seems to happen to all files
2nd the avi is too large (190 MB)

but I tried to write a test script:
print "<hr>\n";
print "<hr>\n";
print "<hr>\n";
print "<hr>";
The intresting point seems to be the output.
Warning: mime_magic: invalid type 0 in mconvert(). in
/home/ck/lamp/public_html/filemanager/bugtest1.php on line 2
(repeats about more than hundred times each line with a
mime_content_type call! while ignoring print "<hr>\n";)

the end is that the last mime_content_type returns a value after a lot
string(19) "application/x-troff"
The only print "<hr>\n"; that seems to be executed works there.


[2003-10-31 16:43:39] [email][/email]

Would it be possible for you to make the avi file in question


[2003-10-31 16:02:16] e05 at freemails dot ch

Well, there isnīt much to tell. The error message is:
Warning: mime_magic: invalid type 0 in mconvert(). in /foo/bar.php on
line 2

mconvert doesnīt seems to be a public funktion as
[url][/url] didnīt work.

Reproduce code:
$result = mime_content_type("/usr/bak/foobar.avi");


Edit this bug report at [url][/url]