xref: /php-src/Zend/tests/generators/gc_order.phpt (revision 44110262)
1--TEST--
2Close generator in dtor to avoid freeing order issues
3--FILE--
4<?php
5
6$gen = function() {
7    yield;
8    throw new Exception; // Just to create a live range
9};
10$a = new stdclass;
11$a->a = $a;
12$a->gen = $gen();
13
14?>
15===DONE===
16--EXPECT--
17===DONE===
18