|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-10-14 17:08 UTC] rob at apgood dot com
Description: ------------ Installed Windows binaries (php-5.3.0-Win32-VC6-x86.msi) with Fileinfo functions selected to be installed. However, the very simple attached script results in error: [Wed Oct 14 09:43:58 2009] [error] [client 173.10.71.237] PHP Fatal error: Call to undefined function finfo_open() in D:\\Apache\\casetracker\\finfo1.php on line 2 Reproduce code: --------------- <?php $finfo = finfo_open(FILEINFO_MIME_TYPE); // return mime type ala mimetype extension echo(finfo_file($finfo, 'favicon.ico')); finfo_close($finfo); ?> Expected result: ---------------- a mime-type description of: "image/vnd.microsoft.icon" or (less correctly): "image/x-icon" Actual result: -------------- in error.log, [Wed Oct 14 09:43:58 2009] [error] [client 173.10.71.237] PHP Fatal error: Call to undefined function finfo_open() in D:\\Apache\\casetracker\\finfo1.php on line 2 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 01:00:01 2025 UTC |
in php.ini: extension_dir = "C:\Program Files\PHP\ext" extension=php_fileinfo.dll dependencies: C:\Program Files\PHP\ext\php_fileinfo.dll (exists) <?php if(!extension_loaded('fileinfo')) { die("fileinfo extension is not avaliable, please compile it.\n"); ?> output: fileinfo extension is not avaliable, please compile it.