We may collect a different number of zvals depending on interning.
Switch tests to compare against a minimum number of collections
instead of a fixed value.
}
$a[] = "xxx";
unset($a);
-var_dump(gc_collect_cycles());
+var_dump(gc_collect_cycles() > 0);
echo "ok\n";
?>
--EXPECT--
-int(2)
+bool(true)
ok
unset($b);
$a->b = "xxx";
unset($a);
-var_dump(gc_collect_cycles());
+var_dump(gc_collect_cycles() > 0);
echo "ok\n";
?>
--EXPECT--
-int(2)
+bool(true)
ok
unset($c);
unset($a);
unset($b);
-var_dump(gc_collect_cycles());
+var_dump(gc_collect_cycles() > 0);
echo "ok\n";
?>
--EXPECT--
-int(2)
+bool(true)
ok
unset($a);
unset($b);
unset($c);
-var_dump(gc_collect_cycles());
+var_dump(gc_collect_cycles() >= 7);
echo "ok\n"
?>
--EXPECTF--
string(1) "%s"
string(1) "%s"
string(1) "%s"
-int(10)
+bool(true)
ok