dis-bench / src /php /php-src /ext /fileinfo /tests /bug79756.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
275 Bytes
--TEST--
Bug #79756 (finfo_file crash (FILEINFO_MIME))
--EXTENSIONS--
fileinfo
--FILE--
<?php
$filename = __DIR__ . '/bug79756.xls';
$finfo = finfo_open(FILEINFO_MIME);
$mime = finfo_file($finfo, $filename);
echo $mime;
?>
--EXPECT--
application/vnd.ms-excel; charset=binary