1--TEST--
2GH-11028 (Heap Buffer Overflow in zval_undefined_cv with generators) - original variant
3--FILE--
4<?php
5$c = (function () {
6    [
7        ...($r = (function () {
8            try {
9                yield $a => 0;
10            } finally {
11                return [];
12            }
13        })()),
14    ];
15})()[0];
16?>
17--EXPECTF--
18Warning: Undefined variable $a in %s on line %d
19
20Fatal error: Uncaught Error: Keys must be of type int|string during array unpacking in %s:%d
21Stack trace:
22#0 %s(%d): {closure}()
23#1 {main}
24  thrown in %s on line %d
25