1--TEST--
2Generators using symtables must not leak
3--FILE--
4<?php
5
6function gen() {
7    $bar = ["some complex var"];
8    ${"f"."oo"} = "force symtable usage";
9    var_dump($bar);
10    yield;
11}
12
13gen()->valid();
14
15?>
16--EXPECT--
17array(1) {
18  [0]=>
19  string(16) "some complex var"
20}
21