dis-bench / src /php /php-src /Zend /tests /gc /bug78589.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
288 Bytes
--TEST--
Bug #78589: Memory leak with GC + __destruct()
--FILE--
<?php
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===