php-src/ext/fileinfo/tests/bug68731.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

15 lines
346 B
PHP

--TEST--
Bug #68731 finfo_buffer doesn't extract the correct mime with some gifs
--SKIPIF--
<?php
if (!class_exists('finfo'))
die('skip no fileinfo extension');
--FILE--
<?php
$buffer = file_get_contents(__DIR__ . '/68731.gif');
$finfo = finfo_open(FILEINFO_MIME_TYPE);
echo finfo_buffer($finfo, $buffer);
?>
--EXPECT--
image/gif