dis-bench / src /php /php-src /Zend /tests /generators /bug76427.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
299 Bytes
--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(2)