summaryrefslogtreecommitdiff
path: root/Zend/tests/bug78589.phpt
blob: ac4761f794d81f0f3829f60377bb822e1c324246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #78589: Memory leak with GC + __destruct()
--FILE--
<?php

class Test {
    public function __destruct() {}
}

$test = new Test;
$test->foo = [&$test->foo];
$ary = [&$ary, $test];
unset($ary, $test);
gc_collect_cycles();

?>
===DONE===
--EXPECT--
===DONE===