Download src/php/php-src/ext/fileinfo/tests/bug68819_002.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug68819_002.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/fileinfo/tests/bug68819_002.phpt
-
curl -L -o bug68819_002.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/fileinfo/tests/bug68819_002.phpt
486 Bytes
| --TEST-- | |
| Bug #68819 Fileinfo on specific file causes spurious OOM and/or segfault, var 2 | |
| --EXTENSIONS-- | |
| fileinfo | |
| --FILE-- | |
| $string = ''; | |
| // These two in any order | |
| $string .= "\r\n"; | |
| $string .= "''''"; | |
| // Total string length > 8192 | |
| $string .= str_repeat("a", 8184); | |
| // Ending in this string | |
| $string .= "say"; | |
| $finfo = new finfo(); | |
| $type = $finfo->buffer($string); | |
| var_dump($type); | |
| --EXPECT-- | |
| string(67) "ASCII text, with very long lines (8191), with CRLF line terminators" | |