I've been trying to use the finfo method and the finfo_ functions. They are described to be included by default in PHP 5.3.0+ (see http://www.php.net/manual/en/fileinfo.installation.php ):
This extension is enabled by default as of PHP 5.3.0. Before this time, fileinfo was a PECL extension but is no longer maintained there.
But it seems that they are missing from the latest stable XAMPP (1.7.2):
Fatal error: Class 'finfo' not found [...]
It doesn't seem to be a PHP issue since it is not listed in the fixed bugs in PHP 5.3.1
Can someone confirm that it is a XAMPP issue? Do you encounter the same problem? Here's a quick code to test:
- Code: Select all
<php
if ( function_exists( 'finfo_open' ) ) {
echo "OMG IT WORKS!!";
} else {
echo "Bad news... :(";
}
?>
Thanks a lot everyone for the hard work, XAMPP is great