mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
16 lines
214 B
PHP
16 lines
214 B
PHP
--TEST--
|
|
GC 024: GC and objects with non-standard handlers
|
|
--INI--
|
|
zend.enable_gc=1
|
|
--FILE--
|
|
<?php
|
|
$a = new ArrayObject();
|
|
$a[0] = $a;
|
|
unset($a);
|
|
var_dump(gc_collect_cycles());
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
ok
|