Download src/php/php-src/ext/fileinfo/tests/bug71527.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug71527.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug71527.phpt
-
curl -L -o bug71527.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug71527.phpt
385 Bytes
| --TEST-- | |
| Bug #71527 Buffer over-write in finfo_open with malformed magic file | |
| --EXTENSIONS-- | |
| fileinfo | |
| --ENV-- | |
| USE_ZEND_ALLOC=0 | |
| --FILE-- | |
| $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic"); | |
| var_dump($finfo); | |
| --EXPECTF-- | |
| Warning: finfo_open(): Failed to load magic database at "%sbug71527.magic" in %sbug71527.php on line %d | |
| bool(false) | |