--TEST-- GC 045: Total count persisted when GC is rerun due to destructor call --INI-- zend.enable_gc=1 --FILE-- val = $val; $this->selfRef = $this; } } for ($j = 0; $j < 10; $j++) { for ($i = 0; $i < 3000; $i++) { new Foo(new Value()); } } var_dump(gc_status()); ?> --EXPECT-- array(4) { ["runs"]=> int(10) ["collected"]=> int(25000) ["threshold"]=> int(10001) ["roots"]=> int(10000) }