php-src/Zend/tests/gc_024.phpt

16 lines
214 B
Plaintext
Raw Normal View History

2008-01-22 17:27:48 +08:00
--TEST--
GC 024: GC and objects with non-standard handlers
2010-03-04 01:53:15 +08:00
--INI--
zend.enable_gc=1
2008-01-22 17:27:48 +08:00
--FILE--
<?php
$a = new ArrayObject();
$a[0] = $a;
unset($a);
var_dump(gc_collect_cycles());
echo "ok\n";
?>
--EXPECT--
int(2)
2008-01-22 17:27:48 +08:00
ok