noodlehaus/dispatch

Call to undefined function finfo_open()

bmcminn opened this issue · 2 comments

Fatal error:  Call to undefined function finfo_open() in \vendor\dispatch\dispatch\src\dispatch.php on line 371

Seems to be an issue that my PHP instance does not have fileinfo installed...

$ php -v
PHP 5.4.12 (cli) (built: Feb 21 2013 17:44:16)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
phpinfo()
Version PHP 5.4.12
Build Date Feb 21 2013 17:41:51
Compiler MSVC9 (Visual C++ 2008
Architecture x64
Configure Command
cscript /nologo configure.js
"--enable-embed"
"--enable-cli-win32"
"--enable-apache2-2handler"
"--enable-apache2-2filter"
"--enable-apache2-4handler"
"--with-mysql=shared"
"--with-mysqli=shared"
"--enable-pdo"
"--with-pdo-mysql=shared"
"--with-pgsql=shared"
"--with-pdo-pgsql=shared"
"--with-mcrypt=static"
"--with-openssl=shared"
"--enable-sockets=shared"
"--enable-intl=shared"
"--enable-mbstring=shared"
"--enable-mbregex"
"--enable-exif=shared"
"--with-xmlrpc=shared"
"--with-xsl=shared"
"--enable-solr=shared"
"--enable-solr-debug"
"--with-curl=shared"
"--with-tidy=shared"
"--with-bz2=shared"
"--enable-rar=shared"
"--enable-fileinfo=shared"
"--with-gettext=shared"
"--with-mhash"
"--with-ldap=shared"
"--enable-com-dotnet=shared"
"--enable-soap=shared"
"--enable-shmop=shared"
"--with-gmp=shared"
"--with-interbase=shared"
"--with-pdo-firebird=shared"
"--with-sqlite3=shared"
"--with-pdo-sqlite=shared"
"--with-pdo-odbc=shared"
"--enable-dbase=shared"
"--with-pdo-oci=C:\php-sdk\oracle\x64\instantclient_10_2\sdk,shared"
"--with-oci8=C:\php-sdk\oracle\x64\instantclient_10_2\sdk,shared"
"--with-oci8-11g=C:\php-sdk\oracle\x64\instantclient_11_2\sdk,shared"
"--with-sybase-ct=shared"
"--enable-couchdb=shared"
"--with-couchbase=shared"
"--enable-mongo=shared"
"--with-imap=shared"
"--enable-mailparse=shared"
"--enable-pop3=shared"
"--with-smtp=shared"
"--with-oauth=shared"
"--with-ssh2=shared"
"--with-snmp=shared"
"--enable-uploadprogress=shared"
"--enable-http=shared"
"--with-imagick=shared"
"--enable-discount=shared"
"--with-pdflib=shared"
"--with-haru=shared"
"--with-excel=shared"
"--with-enchant=shared"
"--enable-printer=shared"
"--with-geoip=shared"
"--enable-timezonedb=shared"
"--with-xdebug=shared"
"--enable-suhosin=shared"
"--disable-optimizer-plus"
"--enable-pthreads=shared"
"--enable-pthreads=shared"
"--enable-win32service=shared"
"--with-memcached=shared"
"--enable-memcache=shared"
"--enable-apc=shared"
"--enable-apc-srwlock-native"
"--enable-apc-debug"
"--enable-xcache=shared"
"--enable-xcache-optimizer"
"--enable-xcache-coverager"
"--enable-eaccelerator=shared"
"--enable-varnish=shared"
"--enable-ffmpeg=shared"
"--disable-security-flags"

It was installed but not enabled in php.ini... bugger :P

;extension=php_fileinfo.dll
; SHOULD BE
extension=php_fileinfo.dll

oh, this has to be put into the composer.json. sorry about this. will put this in. i'm also thinking if this dependency should be removed, as i think it's only being used for determining the mime type of a file.