xref: /PHP-7.4/Zend/tests/gc_024.phpt (revision 1624b0a9)
1--TEST--
2GC 024: GC and objects with non-standard handlers
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7$a = new ArrayObject();
8$a[0] = $a;
9unset($a);
10var_dump(gc_collect_cycles());
11echo "ok\n";
12?>
13--EXPECT--
14int(2)
15ok
16