1--TEST--
2Catch exception thrown into fiber, then suspend again
3--EXTENSIONS--
4fiber
5--FILE--
6<?php
7
8$fiber = new Fiber(function () {
9    try {
10        Fiber::suspend('in try');
11    } catch (Exception $exception) {
12    }
13
14    Fiber::suspend('after catch');
15});
16
17var_dump($fiber->start());
18
19var_dump($fiber->throw(new Exception));
20
21var_dump($fiber->resume());
22
23?>
24--EXPECT--
25string(6) "in try"
26string(11) "after catch"
27NULL
28