Download src/php/php-src/Zend/tests/gc/bug60138.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug60138.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/gc/bug60138.phpt
-
curl -L -o bug60138.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug60138.phpt
331 Bytes
| --TEST-- | |
| Bug #60138 (GC crash with referenced array in RecursiveArrayIterator) | |
| --FILE-- | |
| $tree = array(array("f")); | |
| $category =& $tree[0]; | |
| $iterator = new RecursiveIteratorIterator( | |
| new RecursiveArrayIterator($tree), | |
| RecursiveIteratorIterator::SELF_FIRST | |
| ); | |
| foreach($iterator as $file); | |
| echo "ok\n"; | |
| --EXPECT-- | |
| ok | |