--TEST-- PHPC-1598: WriteConcern get_gc should delegate to zend_std_get_properties --SKIPIF-- =', '8.1.99'); ?> --FILE-- wc = new MongoDB\Driver\WriteConcern('string'); $a->wc->a = $a; printf("Collected cycles: %d\n", gc_collect_cycles()); unset($a); printf("Collected cycles: %d\n", gc_collect_cycles()); ?> ===DONE=== --EXPECT-- Collected cycles: 0 Collected cycles: 2 ===DONE===