1--TEST--
2Symmetric coroutine does not leak prior context
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8$fiber = new _ZendTestFiber(function (): int {
9    return 1;
10});
11
12$fiber->pipeTo(function (int $result): void {
13    var_dump($result);
14});
15
16var_dump($fiber->start());
17
18?>
19--EXPECT--
20int(1)
21NULL
22