Download src/php/php-src/Zend/tests/concat/bug79836_4.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug79836_4.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/concat/bug79836_4.phpt
-
curl -L -o bug79836_4.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug79836_4.phpt
370 Bytes
| --TEST-- | |
| Bug #79836 (use-after-free in concat_function) | |
| --INI-- | |
| memory_limit=10M | |
| --FILE-- | |
| class Foo { | |
| public function __toString() { | |
| return str_repeat('a', 10); | |
| } | |
| } | |
| $i = str_repeat('a', 5 * 1024 * 1024); | |
| $e = new Foo(); | |
| $e .= $i; | |
| --EXPECTF-- | |
| Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d | |