Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-8.3
/
share
/
test
/
mongodb
/
tests
/
readConcern
/
//proc/thread-self/root/opt/php-8.3/share/test/mongodb/tests/readConcern/bug1598-001.phpt
--TEST-- PHPC-1598: ReadConcern get_gc should not invoke get_properties --FILE-- <?php $rc = new MongoDB\Driver\ReadConcern('local'); $a = (object) ['rc' => $rc]; $b = (object) ['rc' => $rc]; $a->b = $b; $b->a = $a; printf("Collected cycles: %d\n", gc_collect_cycles()); unset($a, $b); printf("Collected cycles: %d\n", gc_collect_cycles()); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Collected cycles: 0 Collected cycles: 2 ===DONE===