Download src/php/php-src/ext/fileinfo/tests/bug69320.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug69320.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug69320.phpt
-
curl -L -o bug69320.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug69320.phpt
394 Bytes
| --TEST-- | |
| Bug #69320 libmagic crash when running laravel tests | |
| --EXTENSIONS-- | |
| fileinfo | |
| --FILE-- | |
| $fname = __DIR__ . DIRECTORY_SEPARATOR . "bug69320.txt"; | |
| file_put_contents($fname, "foo"); | |
| var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname)); | |
| --CLEAN-- | |
| $fname = __DIR__ . DIRECTORY_SEPARATOR . "bug69320.txt"; | |
| unlink($fname); | |
| --EXPECT-- | |
| string(10) "text/plain" | |