xref: /PHP-8.1/Zend/tests/generators/gh9752.phpt (revision 86e1fea3)
1--TEST--
2Bug GH-9752 (Generator crashes when interrupted during a function call with extra named params)
3--FILE--
4<?php
5
6function f(...$x) {
7}
8
9function g() {
10    f(a: 1, b: yield);
11};
12
13$gen = g();
14
15foreach ($gen as $value) {
16    break;
17}
18
19?>
20==DONE==
21--EXPECT--
22==DONE==
23