Download src/php/php-src/Zend/tests/gc/bug78589.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug78589.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/gc/bug78589.phpt
-
curl -L -o bug78589.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug78589.phpt
288 Bytes
| --TEST-- | |
| Bug #78589: Memory leak with GC + __destruct() | |
| --FILE-- | |
| class Test { | |
| public $foo; | |
| public function __destruct() {} | |
| } | |
| $test = new Test; | |
| $test->foo = [&$test->foo]; | |
| $ary = [&$ary, $test]; | |
| unset($ary, $test); | |
| gc_collect_cycles(); | |
| ===DONE=== | |
| --EXPECT-- | |
| ===DONE=== | |