--TEST-- foreach() (and other) variables aren't leaked on premature close --FILE-- current()); // generator is closed here, without running SWITCH_FREE ?> --EXPECT-- string(3) "Foo"