Download src/php/php-src/ext/fileinfo/tests/bug57547.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug57547.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug57547.phpt
-
curl -L -o bug57547.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug57547.phpt
512 Bytes
| --TEST-- | |
| Bug #57547 Settings options on file doesn't give same result as constructor options | |
| --EXTENSIONS-- | |
| fileinfo | |
| --FILE-- | |
| $filenames = array("..", __FILE__); | |
| foreach ($filenames as $filename) { | |
| $finfo = new finfo(FILEINFO_MIME); | |
| var_dump($finfo->file($filename)); | |
| $finfo2 = new finfo(); | |
| var_dump($finfo2->file($filename, FILEINFO_MIME)); | |
| } | |
| --EXPECT-- | |
| string(9) "directory" | |
| string(9) "directory" | |
| string(28) "text/x-php; charset=us-ascii" | |
| string(28) "text/x-php; charset=us-ascii" | |