summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug68731.phpt
blob: 5ae63ee11f7751575c1a9e6a383bc74269841c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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