Download src/php/php-src/Zend/tests/concat/bug79836_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug79836_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/concat/bug79836_2.phpt
-
curl -L -o bug79836_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug79836_2.phpt
335 Bytes
| --TEST-- | |
| Bug #79836 (Segfault in concat_function) | |
| --FILE-- | |
| $c = str_repeat("abcd", 10); | |
| ob_start(function () use (&$c) { | |
| $c = 0; | |
| }, 1); | |
| class X { | |
| function __toString() { | |
| echo "a"; | |
| return "abc"; | |
| } | |
| } | |
| $xxx = new X; | |
| $x = $c . $xxx; | |
| ob_end_clean(); | |
| echo $x . "\n"; | |
| --EXPECT-- | |
| abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabc | |