Download src/php/php-src/ext/fileinfo/tests/bug68731.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug68731.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug68731.phpt
-
curl -L -o bug68731.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug68731.phpt
286 Bytes
| --TEST-- | |
| Bug #68731 finfo_buffer doesn't extract the correct mime with some gifs | |
| --EXTENSIONS-- | |
| fileinfo | |
| --FILE-- | |
| $buffer = file_get_contents(__DIR__ . '/68731.gif'); | |
| $finfo = finfo_open(FILEINFO_MIME_TYPE); | |
| echo finfo_buffer($finfo, $buffer); | |
| --EXPECT-- | |
| image/gif | |