mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
c5401854fc
This should fix most of the remaining issues with tabs and spaces being mixed in tests.
15 lines
346 B
PHP
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
|