#49878 [Opn->Fbk]: Fileinfo functions not found

From: Date: Wed, 14 Oct 2009 17:10:22 +0000
Subject: #49878 [Opn->Fbk]: Fileinfo functions not found
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143570@lists.php.net to get a copy of this message
ID: 49878 Updated by: pajoye@php.net Reported By: rob at apgood dot com -Status: Open +Status: Feedback Bug Type: PHP options/info functions Operating System: Windows Serer 2003 PHP Version: 5.3SVN-2009-10-14 (snap) New Comment: Did you activate the extension via php.ini (see phpinfo();)? Previous Comments: ------------------------------------------------------------------------ [2009-10-14 17:08:37] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49878&edit=1

« previous php.bugs (#143570) next »