1--TEST--
2func_get_args() can be used inside generator functions
3--FILE--
4<?php
5
6function gen() {
7    var_dump(func_get_args());
8    yield; // trigger generator
9}
10
11$gen = gen("foo", "bar");
12$gen->rewind();
13
14?>
15--EXPECT--
16array(2) {
17  [0]=>
18  string(3) "foo"
19  [1]=>
20  string(3) "bar"
21}
22