|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-10-31 16:02 UTC] e05 at freemails dot ch
Description: ------------ 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 http://www.php.net/mconvert didn?t work. Reproduce code: --------------- <?php $result = mime_content_type("/usr/bak/foobar.avi"); ?> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
mhhhh.... 1st this seems to happen to all files 2nd the avi is too large (190 MB) but I tried to write a test script: <?php var_dump(mime_content_type('/home/e05/file1.avi')); print "<hr>\n"; var_dump(mime_content_type('/home/e05/file2.mov')); print "<hr>\n"; var_dump(mime_content_type('/home/e05/file3.zip')); print "<hr>\n"; var_dump(mime_content_type('/home/e05/file4.rm')); 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 warnings: string(19) "application/x-troff" The only print "<hr>\n"; that seems to be executed works there.