Download src/php/php-src/Zend/tests/generators/bug76427.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug76427.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/generators/bug76427.phpt
-
curl -L -o bug76427.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/generators/bug76427.phpt
299 Bytes
| --TEST-- | |
| Bug #76427 (Segfault in zend_objects_store_put) | |
| --FILE-- | |
| $func = function () { | |
| yield 2; | |
| }; | |
| $a = new stdclass(); | |
| $b = new stdclass(); | |
| $a->b = $b; | |
| $b->a = $a; | |
| $func = $a->func = $func(); | |
| unset($b); | |
| unset($a); | |
| unset($func); | |
| var_dump(gc_collect_cycles()); | |
| --EXPECT-- | |
| int(2) | |