1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 08:02:49 +02:00
Files
archived-php-src/Zend/tests/gc_024.phpt

18 lines
301 B
PHP

--TEST--
GC 024: GC and objects with non-standard handlers
--INI--
zend.enable_gc=1
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
$a = new ArrayObject();
$a[0] = $a;
unset($a);
var_dump(gc_collect_cycles());
echo "ok\n";
?>
--EXPECT--
int(1)
ok