xref: /PHP-7.2/Zend/tests/gc_024.phpt (revision 3f627e58)
1--TEST--
2GC 024: GC and objects with non-standard handlers
3--INI--
4zend.enable_gc=1
5--SKIPIF--
6<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
7--FILE--
8<?php
9$a = new ArrayObject();
10$a[0] = $a;
11unset($a);
12var_dump(gc_collect_cycles());
13echo "ok\n";
14?>
15--EXPECT--
16int(2)
17ok
18