1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
--TEST-- Bug #76427 (Segfault in zend_objects_store_put) --FILE-- <?php $func = function () { yield 2; }; $a = new stdclass(); $b = new stdclass(); $a->b = $b; $b->a = $a; $func = $a->func = $func(); unset($b); unset($a); unset($func); var_dump(gc_collect_cycles()); ?> --EXPECT-- int(4)