Download src/php/php-src/Zend/tests/concat/bug79836.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug79836.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/concat/bug79836.phpt
-
curl -L -o bug79836.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug79836.phpt
290 Bytes
| --TEST-- | |
| Bug #79836 (Segfault in concat_function) | |
| --INI-- | |
| opcache.optimization_level = 0x7FFEBFFF & ~0x400 | |
| --FILE-- | |
| $counter = 0; | |
| ob_start(function ($buffer) use (&$c, &$counter) { | |
| $c = 0; | |
| ++$counter; | |
| }, 1); | |
| $c .= []; | |
| $c .= []; | |
| ob_end_clean(); | |
| echo $counter . "\n"; | |
| --EXPECT-- | |
| 3 | |