Download src/php/php-src/ext/fileinfo/tests/bug61173.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug61173.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug61173.phpt
-
curl -L -o bug61173.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug61173.phpt
305 Bytes
| --TEST-- | |
| Bug #61173: Unable to detect error from finfo constructor | |
| --EXTENSIONS-- | |
| fileinfo | |
| --FILE-- | |
| try { | |
| $finfo = new finfo(1, '', false); | |
| var_dump($finfo); | |
| } catch (TypeError $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| --EXPECT-- | |
| finfo::__construct() expects at most 2 arguments, 3 given | |