Download src/php/php-src/tests/output/bug60768.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/output/bug60768.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/output/bug60768.phpt
-
curl -L -o bug60768.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/output/bug60768.phpt
469 Bytes
| --TEST-- | |
| Bug #60768 Output buffer not discarded | |
| --FILE-- | |
| global $storage; | |
| ob_start(function($buffer) use (&$storage) { $storage .= $buffer; }, 20); | |
| echo str_repeat("0", 20); // fill in the buffer | |
| for($i = 0; $i < 10; $i++) { | |
| echo str_pad($i, 9, ' ', STR_PAD_LEFT) . "\n"; // full buffer dumped every time | |
| } | |
| ob_end_flush(); | |
| printf("Output size: %d, expected %d\n", strlen($storage), 20 + 10 * 10); | |
| DONE | |
| --EXPECT-- | |
| Output size: 120, expected 120 | |
| DONE | |